gpt4 book ai didi

javascript - IE 11 中的 Angular 应用程序错误。Chrome 中一切正常

转载 作者:行者123 更新时间:2023-12-03 05:44:59 25 4
gpt4 key购买 nike

我正在开发一个 Angular 应用程序。该应用程序在 Chrome 中运行良好,但在 IE 中(我使用的是 IE11),出现以下错误。

Unhandled exception at line 2930, column 1 in http://localhost:54896/Scripts/Angular/angular.js

0x800a138f - JavaScript runtime error: Unable to get property 'prototype' of undefined or null reference

最佳答案

将此元标记放在 html 文件索引的头部:

<meta http-equiv="X-UA-Compatible" content="IE=edge" />

这将强制浏览器使用最新版本的文档进行渲染。

关于javascript - IE 11 中的 Angular 应用程序错误。Chrome 中一切正常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40364829/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com