ie9 Error: 'Blob' is undefined

点点圈 提交于 2019-12-10 18:16:24

问题


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)


回答1:


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



来源:https://stackoverflow.com/questions/23830134/ie9-error-blob-is-undefined

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!