3

嗨,我用以下代码保存了一个画布。

var img = canvas.toDataURL("image/png").replace("image/png", "image/octet-stream");
window.location.href = img;  

但是 IE9 不起作用。无法打开数据:image/octet-stream;base64,iVBORw0KGgoAAAANSUhEUgAAB4AAA.....

我怎样才能让它在 IE9 上工作?感谢您的帮助...

4

1 回答 1

0

可能会尝试使用

window.location.assign(img); // or
window.location = img;

有关更多详细信息,请检查window.location

于 2013-04-13T11:01:54.277 回答