【问题标题】:IE6 debug javascript [duplicate]IE6调试javascript [重复]
【发布时间】:2013-04-12 23:20:35
【问题描述】:

我知道有人问过,但这在 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 插件(或其他东西)来捕捉这个吗?

【问题讨论】:

  • 所以你正在处理使用IE6的6.7% of the internet?糟透了。
  • @epascarello:如果你忽略中国,实际上不到 1% :)
  • 如果您的应用程序服务于大型企业环境,则该百分比要高得多。但是,做你真是太糟糕了。
  • 解决您的问题并不能帮助我们尽快杀死 IE6。
  • 你能把你的代码浓缩成一个人们可以运行的小代码sn-p吗?你的代码有没有做过delete resultdelete x[y] where x == window &amp;&amp; y == "result"

标签: javascript debugging internet-explorer-6


【解决方案1】:

也许这可以帮助你: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>

edit:发现不支持调试javascript代码。无论如何,就像有人对你说过的 cmets 一样,看看这个答案:Debug JavaScript within IE6

【讨论】:

    猜你喜欢
    • 2010-10-02
    • 2012-03-08
    • 2010-10-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-01-29
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多