我的应用程序使用角4.0.0和“角填充”:"^1.0.1",它在除IE9之外的所有浏览器中都能工作。
我取消了polyfills.ts文件中所有行的注释
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/weak-map';
import 'core-js/es6/set';我得到了错误在IE9中
try {
return this._zoneDelegate.invokeTask(this, task, applyThis, applyArgs);
}
catch (error) {
if (this._zoneDelegate.handleError(this, error)) {
throw error;
}
}
}
finally {
// if the task's state is notScheduled or unknown, then it has already been cancelled
// we should not reset the state to scheduled
if (task.state !== notScheduled && task.state !== unknown) {
if (task.type == eventTask || (task.data && task.data.isPeriodic)) {
reEntryGuard && task._transitionTo(scheduled, running);我必须包括任何其他多填充文件。提前感谢
发布于 2017-12-15 15:32:56
有一个polygon.ts文件,它注释了代码,表示取消注释以支持IE9。
https://stackoverflow.com/questions/47202812
复制相似问题