angular CLI 11 版本在 Internet Explorer 11 中不起作用

维杰

Angular CLI 11 在 IE 11 中不起作用我使用了 import 'zone.js/dist/zone'; // 包含在 Angular CLI 中。导入“网络动画-js”;// 运行npm install --save web-animations-js导入'classlist.js'; // 运行npm install --save classlist.js

迪帕克-MSFT

在这里,我假设您已经创建了一个要在 IE 11 浏览器中运行的新Angular CLI 11空项目。

我建议您参考以下步骤,可能会帮助您在 IE 11 浏览器中运行 Angular CLI 11 项目。

  1. 打开tsconfig.json文件并设置"target": "es5".
  2. 打开.browserslistrc文件,并删除了not之前的前缀IE 11它应该如下所示。

在此处输入图片说明

除此之外,在新创建的 Angular CLI 11 项目中无需更改即可在 IE 11 浏览器中运行它。

此外,您可以根据需要添加必要的 polyfill。

IE 11 中的输出:

在此处输入图片说明

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

Internet Explorer 11检测

Flexbox在Internet Explorer 11中不起作用

由angular-cli 1.0.0构建的Angular 4.0.0 App在IE11中不起作用

:after,:before Internet Explorer 11中的问题

媒体查询在Internet Explorer 11中不起作用

Internet Explorer 11中的绝对定位错误

<main>元素在Internet Explorer 11中不起作用

内容安全策略在Internet Explorer 11中不起作用

jQuery .append()在Internet Explorer 11中不起作用

Angular ngModelChange Internet Explorer 11

如何检测Internet Explorer 11及以下版本?

CSS转换旋转在Internet Explorer 11中不起作用

输入范围滑块的Javascript代码在Internet Explorer 11中不起作用

在Internet Explorer 11中运行Java

Outlook Web Access v8在Internet Explorer 10/11中不起作用

Internet Explorer 11中的formatBlock

在Internet Explorer 11中打开固定的站点

如何将Internet Explorer 11更新到版本11.1155.15063.0

Internet Explorer 11忽略

锚点在Internet Explorer 11中不起作用

Internet Explorer 11中的Web Worker分析

Pygal 图表在 Internet Explorer 11 上不起作用

Neo4J 的沙箱在 Internet Explorer 11 中不起作用

Internet Explorer 11 中的 FormData.entries()?

Context Root 在 Internet Explorer 11 版本中不起作用

使用 translate3d 的 CSS 加载器在 Internet Explorer 11 中不起作用

量角器测试用例在 Internet Explorer 11 中不起作用

此 javascript 代码在 Internet Explorer 11 中不起作用

对齐内容不起作用 Internet Explorer 11