IE11 中的中止控制器不起作用.任何方式来支持它 [英] Abort Controller in IE11 doesn't work. Any way to support it

查看:36
本文介绍了IE11 中的中止控制器不起作用.任何方式来支持它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试使用https://www.npmjs.com/package/abortcontroller-polyfill?activeTab=自述文件 在 IE 上使用此控制器.但它不起作用

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

推荐答案

要让window.AbortController()在IE11中运行,看看他们的IE11 示例.

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

安装:

  • promise-polyfill
  • 取消提取
  • abortcontroller-polyfill

在调用 AbortController 之前将以下内容添加到您的工作中.

Add the following to your work before AbortController is called.

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

这篇关于IE11 中的中止控制器不起作用.任何方式来支持它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆