Javascript IE 9 中 FileReader() 的垫片
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11089897/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Shim for FileReader() in IE 9
提问by DGT
采纳答案by josh3736
This polyfilluses Flash to provide access to the filesystem on browsers that don't support the File APIs (IE and Safari), but does not support drag-n-drop.
这个 polyfill使用 Flash 在不支持文件 API(IE 和 Safari)但不支持拖放的浏览器上提供对文件系统的访问。
This oneuses Silverlight to allow drag-n-drop.
这个使用 Silverlight 来允许拖放。
回答by Calvein
It looks like there is one https://github.com/ebidel/idb.filesystem.js(untested).
http://html5please.com/is great for this kind of question.
看起来有一个https://github.com/ebidel/idb.filesystem.js(未经测试)。
http://html5please.com/非常适合这类问题。
回答by Darin Dimitrov
IE9 doesn't support the HTML5 File API. Of course there might be other ways to implement the feature you are trying to implement (which by the way you haven't explained).
IE9不支持 HTML5 文件 API。当然,可能还有其他方法来实现您尝试实现的功能(顺便说一下,您还没有解释过)。