开发者

IE8 Javascript doesnt run unless Developer Tools is open?

开发者 https://www.devze.com 2022-12-11 02:37 出处:网络
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 an

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).

Anyon开发者_运维问答e else had this problem?


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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消