Abort Controller in IE11 doesn't work. Any way to support it

梦想的初衷 提交于 2020-06-17 03:04:11

问题


Tried using https://www.npmjs.com/package/abortcontroller-polyfill?activeTab=readme to use this controller on IE. But it does not work


回答1:


To get window.AbortController() running in IE11, take a look at their IE11 example.

Install:

  • promise-polyfill
  • unfetch
  • abortcontroller-polyfill

Add the following to your work before AbortController is called.

import 'promise-polyfill/src/polyfill';
import 'unfetch/polyfill';
import 'abortcontroller-polyfill';


来源:https://stackoverflow.com/questions/56147314/abort-controller-in-ie11-doesnt-work-any-way-to-support-it

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