angular - Internet Explorer 错误 - SCRIPT5009:“承诺”未定义
问题描述
我正在使用 Angular CLI 并在 IE9 上显示此消息“SCRIPT5009:'Promise' 未定义”。我删除了 polyfills.ts 和 IE10 和 IE11 中的注释,但在 IE9 中没有。
解决方案
将此添加到您的 src/polyfills.ts:
import 'core-js/es6/promise';
推荐阅读
- python - 扩展空列表使第一个元素为空
- mysql - 使用 NodeJS 从 Lambda 调用 RDS MySQL 时间歇性超时
- javascript - Firebase 数据与 javascript 的异步承诺相结合
- windows - 由于分区健康,无法通过命令行扩展 C 盘
- java - 如何检查值是否存在于java中的列表中
- amazon-web-services - 从与原始 AMI 相比已更新卷的实例创建启动模板
- vdproj - 在 .vdproj(Visual Studio 安装程序)文件中添加大量文件
- c - 如何打印以下二维数组?
- java - 在新选项卡中下载时如何在 Selenium (Java) 中下载无头文件?
- arrays - BigQuery LEFT JOIN 一个表并根据条件过滤其数组元素