Javascript 'Promise' 在 IE 中未定义
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/36831372/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-23 19:36:45 来源:igfitidea点击:
'Promise' is undefined in IE
提问by Becky
I'm getting a 'Promise' is undefined
error in IE. Why is that and how can I solve this?
我'Promise' is undefined
在 IE 中遇到错误。为什么会这样,我该如何解决?
回答by Kevin
Add something like
添加类似的东西
<script src="https://cdnjs.cloudflare.com/ajax/libs/bluebird/3.3.5/bluebird.min.js"></script>
To <head>...</head>
到 <head>...</head>
This will pull in an external Bluebird Promise Library, so that you will be able to use Promise
on IE
这将引入一个外部 Bluebird Promise 库,以便您可以Promise
在 IE上使用