【发布时间】:2019-02-07 04:29:54
【问题描述】:
在polyfills.ts 中,注释掉的行之一如下:
/** IE10 and IE11 requires the following for the Reflect API. */
// import 'core-js/es6/reflect';
什么是“反射 API”?它需要哪些 IE 用例?在 IE 中运行 Angular 应用程序时,此导入语句通常重要吗?令人惊讶的是,谷歌和 StackOverflow 并没有为我提供很多/任何结果。
【问题讨论】:
-
Polyfills 用于在尚未实现某些新功能的旧浏览器中提供向后兼容性。在这种情况下,该功能是 the
Reflectobject
标签: angular typescript internet-explorer cross-browser polyfills