我正在使用fetch
,並在我的應用程序中包含了whatwg-fetch
polyfill。TextDecoder的Polyfill
我也僱用TextDecoder
如Jake Archibald的博客That's so fetch!中所述解碼響應,但我不確定使用什麼polyfill。
(目前Safari的抱怨ReferenceError: Can't find variable: TextDecoder
)
我猜有一個爲TextDecoder
一個填充工具,但我沒有找到它......
只是解碼的文件我要補充? encoding.js或encoding-indexes.js ??在添加後有必要使用「從'text-encoding'導入編碼';'這條線? –
如何驗證polyfill工作正常? –