2012-04-11 144 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">