IE中未定义“承诺” [英] 'Promise' is undefined in IE

查看:111
本文介绍了IE中未定义“承诺”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在IE中收到'Promise'未定义错误。为什么会这样,我该如何解决?

I'm getting a 'Promise' is undefined error in IE. Why is that and how can I solve this?

推荐答案

添加类似

<script src="https://cdnjs.cloudflare.com/ajax/libs/bluebird/3.3.5/bluebird.min.js"></script>

< head> ...< / head>

这将引入一个外部Bluebird Promise库,这样你就可以使用 Promise 在IE上

This will pull in an external Bluebird Promise Library, so that you will be able to use Promise on IE

这篇关于IE中未定义“承诺”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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