[英]IE Compatibility mode is preventing me getting my error messages
I have a JavaScript web app that dosen't run on IE. 我有一个不在IE上运行的JavaScript网络应用。
So naturally I fire up the console to try to figure out what is wrong. 因此,我自然会启动控制台以尝试找出问题所在。 However, by some annoying miracle, it decides to work when I do this. 但是,通过一些令人讨厌的奇迹,当我这样做时它决定起作用。
I believe it enters some compatibility mode when the console is open wich fixes the error thus preventing me from findin out what is wrong. 我相信当控制台打开时它将进入某种兼容模式,从而修复了错误,从而阻止了我找出问题所在。 Here is all I got from the console: 这是我从控制台获得的所有信息:
HTML1200: dropbox.com is on the Internet Explorer 9 Compatibility View List ('C:\\Users...\\AppData\\Local\\Microsoft\\Internet Explorer\\IECompatData\\iecompatdata.xml'). HTML1200:dropbox.com在Internet Explorer 9兼容性视图列表中(“ C:\\ Users ... \\ AppData \\ Local \\ Microsoft \\ Internet Explorer \\ IECompatData \\ iecompatdata.xml”)。
or.. 要么..
In your script you have got console.log()
. 在脚本中,您有console.log()
。 The console
is only available in IE8 / 9 if the developer tools are open: 如果开发人员工具处于打开状态,则仅在IE8 / 9中提供该console
:
console.log(model); // line 104
console.log("Days to complete: " + days); // line 310
All you need to do is remove the console.log()
statements. 您需要做的就是删除console.log()
语句。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.