IE 11权限被拒绝的Javascript

问题描述 投票:2回答:1

我创建了一个琐碎的HTML / JS / Angular页面(如下),该页面在IE 11中首次呈现时会引发Permission Denied异常。请参阅下面的调试器控制台的图像。我的IE版本在Windows 7上是11.0.9。

[编辑]请参见下面的源。包含元标记,但这不能解决问题。 txs

<!DOCTYPE html>
<html ng-app="ie11bug">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>IE 11 Bug</title>
        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/angularjs/1.5.8/angular.js"></script>
    </head>

   <body>
       <div ng-controller="AppController">
           Hello {{pageTitle}}
       </div>
       <script>
           var app = angular.module('ie11bug', []).controller('AppController', function($scope) {
               $scope.pageTitle = "This will not appear when page is 1first loaded";
           });
       </script>
    </body>
</html>

我尝试过从1.4到1.6的各种Angular版本,结果相同。清除缓存并加载页面后,将发生错误。如果重新加载,页面将成功渲染。

当工厂方法(从$ exceptionHandler调用)将$ log服务分配到缓存中时,总是出现该错误。

当我尝试登录到控制台时,我也会获得拒绝权限

<script>
  console.log("hello");
</script>

任何帮助/想法都将不胜感激。

enter image description here

enter image description here

enter image description here

enter image description here

javascript angularjs internet-explorer
1个回答
0
投票

这个解决了吗?我在React中用'throw'搞定了! :(

© www.soinside.com 2019 - 2024. All rights reserved.