2012-04-11 146 views

回答

1

您的JS文件console.log语句。 IE本身不理解console.log,因为它没有控制台,因此JavaScript中断。但是,当调用控制台时(我在猜测开发人员工具),将运行console.log语句。

您只需删除或注释console.log声明即可。

+0

哇!非常感谢!从来没有想过console.log可能是问题:) – 2012-04-11 09:58:21

0

我想,这是因为默认情况下IE在怪癖模式下呈现页面。

quirks mode refers to a technique used by some web browsers for the sake of 
maintaining backward compatibility with web pages designed for older browsers, 
instead of strictly complying with W3C and IETF standards in standards mode. 

如果要使用更高版本的IE然后添加下面一行到你的<head>标签

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