javascript - Angular 5 - TypeError: Object does not support this action on IE11- PolyFills 需要支持吗?
问题描述
使用 AdminLTE 仪表板 + 角度应用程序加载登录组件,仅在 IE11 中引发以下错误!
ERROR TypeError: Object doesn't support this action
at LayoutLoginComponent.prototype.ngOnInit
布局组件.ts
加载了 es-6 相关的 polyfill
/** IE9, IE10 and IE11 requires all of the following polyfills. **/
import 'core-js/es6/symbol';
import 'core-js/es6/object';
import 'core-js/es6/function';
import 'core-js/es6/parse-int';
import 'core-js/es6/parse-float';
import 'core-js/es6/number';
import 'core-js/es6/math';
import 'core-js/es6/string';
import 'core-js/es6/date';
import 'core-js/es6/array';
import 'core-js/es6/regexp';
import 'core-js/es6/map';
import 'core-js/es6/set';
import 'core-js/es7/array';
只有在文本字段中输入一些文本后才会出现的 loginTemplate
是否需要添加任何其他 polyfill 来解决此问题?
解决方案
推荐阅读
- python - 比较文件中的 2 个列表并将结果保存在另一个文件中
- spring-boot - 图像路径在springboot中不起作用
- variables - Ansible:配置 nginx 角色以使用从变量读取的自定义端口
- python - python中的等高线图与X轴上的时间
- jwt - 如何在 nuxt 中存储解码 JWT 的数据?
- wpf - Wpf menuitem 可见性只是第一次调用
- sql - 如何获取表中所有相关的父子记录?
- javascript - 为什么反应钩子使用状态显示错误消息
- raku - 如何在 REPL 中获得“帮助”功能
- stripe-payments - Stripe - 在试用期内更新数量,它是如何工作的?