我知道有人问过这个问题,但这在IE6 (winxp)中很奇怪。
在以下情况下,JS代码会崩溃:
var result = ....
if(result==200) <-- this is the reported error in IE6, something at line 62 char 5它在最新的Chrome、Firefox等浏览器上运行良好。
你能建议我一些IE6的工具,比如FireBug插件(或其他)来捕捉这个吗?
发布于 2013-04-12 23:09:34
也许这对你有帮助:https://getfirebug.com/firebuglite
它是javascript中的firebug克隆,与IE6兼容。
从文档中了解如何安装它:
<!-- Include the following code at the top of the <head> of your page -->
<script type="text/javascript" src="https://getfirebug.com/firebug-lite.js"></script>编辑:发现javascript代码不支持调试。无论如何,就像别人已经对你说过的评论一样,看看这个答案:Debug JavaScript within IE6。
https://stackoverflow.com/questions/15973578
复制相似问题