首页 > 解决方案 > 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 来解决此问题? 在此处输入图像描述

标签: javascriptjqueryangularecmascript-6adminlte

解决方案


推荐阅读