Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嗨,我用以下代码保存了一个画布。
var img = canvas.toDataURL("image/png").replace("image/png", "image/octet-stream"); window.location.href = img;
但是 IE9 不起作用。无法打开数据:image/octet-stream;base64,iVBORw0KGgoAAAANSUhEUgAAB4AAA.....
我怎样才能让它在 IE9 上工作?感谢您的帮助...
可能会尝试使用
window.location.assign(img); // or window.location = img;
有关更多详细信息,请检查window.location