开发者

Javascript Blob.slice method cross-browser?

开发者 https://www.devze.com 2023-04-06 00:24 出处:网络
Doing a bit of learning about the Blob type with File access in HTML5 capable browsers and I discovered that Chrome doesn\'t use Blob.slice() but Blob.webkitSlice().

Doing a bit of learning about the Blob type with File access in HTML5 capable browsers and I discovered that Chrome doesn't use Blob.slice() but Blob.webkitSlice().

Does anyone know if there is a method for this that is accepted cross-browser yet or do I need to write my own?

If I need to write my own, can anyone guide me to where this method is defined in Firefox and IE9? (and probably Opera too)

EDIT

Found the Firefox definition and it a开发者_StackOverflow社区ppears that it used to use slice() but now uses mozSlice().

So that leaves Opera and IE9+


Epascarello answered it above in the comments:

File api is not supported in IE9, caniuse.com

0

精彩评论

暂无评论...
验证码 换一张
取 消