angular.js - AngularJS v1.5.8 在IE9中出现灰屏,不启动的问题。
phpcn_u1582
phpcn_u1582 2017-05-15 17:11:00
0
5
662

使用IE10浏览器可以正常查看,但是一模拟IE9就会出现灰屏现象,app都不启动,如图:


这个是360兼容模式下的 IE下的 没截到图,都是一样的,title都没有解析出来,
但是很奇怪的是 IE中开启控制台,再刷新就能正常显示,控制台也没有报任何错误,求大神有没有遇到这种情况?

注:之前发现过这种情况,由于控制器某一个值未定义导致angular报错;
但是现在实在找不到哪里有这个现象。

查看IE调试工具中发现,网络请求了CSS文件,但是到JS的时候就停止了?

phpcn_u1582
phpcn_u1582

reply all(5)
PHPzhong

I found it was a console problem. If you don’t start the debugging tool in IE9, the code will stop as soon as it reaches the console;

    • I didn’t expect that. . .

我想大声告诉你

Thank you for the invitation.
There is nothing in your code, and it doesn’t say anything about the angular version. How can I reproduce it? . . How about you show the entire reproducible example and we can continue debugging

左手右手慢动作

It will be difficult to find the problem if it cannot be reproduced stably.

How about you try, comment out the components that are likely to have problems, try them one by one, and find out which one is causing the problem first

过去多啦不再A梦

It seems to be related to meta, please join

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

Try again?

我想大声告诉你

Mom no longer has to worry about Console is undefined

if(!(window.console && console.log)) {
  window.console = {
    log: function(){},
    debug: function(){},
    info: function(){},
    warn: function(){},
    error: function(){}
  };
}
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template