本文介绍了Chrome toDataURI错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

直到大约一天前,Canvas2Image JS库和.toDataURI JS方法在Chrome中运行。 现在,Chrome版本19.0 .1084.46,如果尝试在引用页面上单击保存PNG以下载HTML5 canvas元素的PNG版本,它不会提示下载 - 但会生成MIME类型错误。这是故意的 - 可能是出于安全原因,还是一个错误? (它继续在Firefox中运行)。

解决方案

这是Google Chrome v19中的一个错误,因为它在v18和v20中工作正常。我相信它很快就会得到解决。


Until a day or so ago, the Canvas2Image JS library and .toDataURI JS method worked in Chrome. http://www.nihilogic.dk/labs/canvas2image/ Now, with Chrome version 19.0.1084.46, if you try clicking Save PNG on the referenced page to download a PNG version of the HTML5 canvas element, it doesn't prompt a download - but generates a MIME type error. Is this intentional - perhaps for security reasons, or a bug? (It continues to work in Firefox.)

解决方案

It's a bug in Google Chrome v19 as it works fine in v18 and v20. I'm sure it'll be fixed soon.

这篇关于Chrome toDataURI错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-03 06:43