Internet Explorer网站显示空白页面

时间:2012-12-07 09:18:54

标签: javascript jquery html css internet-explorer

我的网站有一个奇怪的问题,但只有Internet Explorer!

当我打开网站时,即只加载背景颜色,但如果我在我的键盘上按F12打开开发人员工具,然后我刷新网页,网站正常显示没有任何问题...任何建议?

1 个答案:

答案 0 :(得分:2)

我猜是因为你在代码中使用了console.log

在IE中打开Developer Tools后,可以使用console.log。使用try catch;

try{
    console.log('log')
}
catch(err){
}