ie9 错误:'Blob' 未定义 [英] ie9 Error: 'Blob' is undefined
本文介绍了ie9 错误:'Blob' 未定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这个http://jsfiddle.net/bCRm3/17/
(剑道网格导出到 csv)
在 Firefox、chrome 和 IE11 中工作正常
在 ie9 中我得到 p>
blob = new Blob([csv], { type: 'text/csv;charset=utf-8' });//Blob.jssaveAs(blob, 文件名);//FileSaver.js
'Blob' 未定义显示,第 141 行字符 17
ie9 有没有办法解决这个问题?(我不确定这是否适用于 ie10)
解决方案
检查 Blob
对象浏览器兼容性:
浏览器兼容性
<块引用>Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)20 13.0 (13.0) 10 12.10 6 (536.10)
请注意,并非所有浏览器(包括 IE9 或更高版本)都支持此功能:
https://developer.mozilla.org/en-US/文档/Web/API/Blob
this http://jsfiddle.net/bCRm3/17/
(Kendo grid export to csv)
works fine in firefox, chrome and IE11
in ie9 im getting
blob = new Blob([csv], { type: 'text/csv;charset=utf-8' }); //Blob.js
saveAs(blob, fileName); //FileSaver.js
'Blob' is undefined show, line 141 character 17
is there a way around this for ie9? (im not sure if this works on ie10)
解决方案
Check Blob
object browser compatibility:
Browser compatibility
Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit) 20 13.0 (13.0) 10 12.10 6 (536.10)
Please note that this is not supported by all browsers including IE9 or ealier:
https://developer.mozilla.org/en-US/docs/Web/API/Blob
这篇关于ie9 错误:'Blob' 未定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文