IE8 Javascript doesnt run unless Developer Tools is open?

淺唱寂寞╮ 提交于 2020-01-01 08:46:48

问题


For some reason, in IE8, javascript is not running unless I reload the page with Developer Tools open. I close developer tools and reload the page and the javascript stops working. I'm not getting any error reports (not that they'd be any use anyway).

Anyone else had this problem?


回答1:


Often that's because you left a console.log call in your script. This only works when a debugger is present. You should get a JS error on trying to use it unless you have them turned off.




回答2:


Close Developer Tools, close IE8, re-open, refresh with clear-cache: CTRL-F5 This should do the trick if you don't have any special JavaScript communicating with Developer Tools.



来源:https://stackoverflow.com/questions/1701754/ie8-javascript-doesnt-run-unless-developer-tools-is-open

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!