Closed mraiguo closed 3 years ago
I can't read Chinese, but reading through the source code, I did spot a Date.now()
which will cause problems in IE8. https://github.com/camsong/fetch-jsonp/blob/master/src/fetch-jsonp.js#L8
Should either change documented support to IE9+ or replace with new Date().getTime();
.
Workaround is to include a Date.now() polyfill in your application above the code that uses fetch-jsonp:
if (!Date.now) {
Date.now = function () {
return new Date().getTime();
};
}
@kaidjohnson sorry,I've found it,But forget to submit a pr,thanks
When I use the example of ie8(index-ie8.html)it report an error: TypeError: 对象不支持此属性或方法