IE8 Javascript不运行,除非开发人员工具打开? [英] IE8 Javascript doesnt run unless Developer Tools is open?

查看:113
本文介绍了IE8 Javascript不运行,除非开发人员工具打开?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

出于某种原因,在IE8中,javascript没有运行,除非我重新加载打开Developer Tools的页面。我关闭开发人员工具并重新加载页面,javascript停止工作。我没有收到任何错误报告(不管它们是否有任何用处)。

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

其他人有这个问题吗?

推荐答案

通常这是因为您在脚本中留下了 console.log 调用。这仅适用于存在调试器的情况。除非你关闭它们,否则你应该在尝试使用它时遇到JS错误。

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.

这篇关于IE8 Javascript不运行,除非开发人员工具打开?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆