【问题标题】:Angular2 not working on IE11Angular2 不能在 IE11 上运行
【发布时间】:2017-01-26 07:42:53
【问题描述】:

我也添加了 es6shim,但我在 IE11 上遇到错误,并且 angular2 应用程序无法正常工作。

【问题讨论】:

  • @Roy 它说 zone.js 特别是在错误中,但事实并非如此。我已经安装了最新的 zone.js 仍然无法正常工作。
  • 尝试在html标签下添加索引
  • @YoavSchniederman 找不到您提供的第一个 html 标签

标签: angular internet-explorer-11


【解决方案1】:

尝试将以下内容添加到 index.html

    <!doctype html>
    <html lang="en">
    <script src="https://raw.githubusercontent.com/angular/angular/66df335998d097fa8fe46dec41f1183737332021/shims_for_IE.js" type="text/plain"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/es5-shim/4.5.9/es5-sham.js" type="text/plain"></script>

【讨论】:

  • 它给了我以下错误SEC7112: Script from https://raw.githubusercontent.com/angular/angular/66df335998d097fa8fe46dec41f1183737332021/shims_for_IE.js was blocked due to mime type mismatch localhost:3000
  • 好的,如果你的客户端代码在java play的服务器代码中,你需要删除安全块
  • 什么意思??
  • 你使用的是哪个服务器环境?
  • 我没听懂你,但我认为它是 webpack。这是前端所以我很困惑??
猜你喜欢
  • 1970-01-01
  • 2018-09-20
  • 1970-01-01
  • 2016-08-03
  • 2018-04-19
  • 1970-01-01
  • 2016-11-21
  • 1970-01-01
  • 2017-07-17
相关资源
最近更新 更多