admin管理员组文章数量:1313388
I have created a fairly large Javascript app that works in Firefox and up until yesterday, IE. I've made quite a few changes and now I'm getting syntax errors in IE, but all is fine in Firefox. Obviously I have a trailing ma somewhere but I can't see it. IE's error message is less than helpful, not even telling me which JS file has the error.
Is there a syntax checker for Javascript that will inform me of such errors in more detail?
I have created a fairly large Javascript app that works in Firefox and up until yesterday, IE. I've made quite a few changes and now I'm getting syntax errors in IE, but all is fine in Firefox. Obviously I have a trailing ma somewhere but I can't see it. IE's error message is less than helpful, not even telling me which JS file has the error.
Is there a syntax checker for Javascript that will inform me of such errors in more detail?
Share Improve this question asked Feb 17, 2009 at 23:33 Steve MSteve M 10.6k12 gold badges53 silver badges63 bronze badges3 Answers
Reset to default 5http://www.jslint./ will catch those ma and semicolon problems.
Example:
Error:
Problem at line 1 character 17: Extra ma.
var foo = ['bar',]
Problem at line 1 character 19: Missing semicolon.
var foo = ['bar',]
JS lint -> http://jslint./
I would try it in IE8rc1. The new debugging tools are a far cry from Firebug, but they should tell you exactly what the problem is in this case.
本文标签: debuggingJavascript syntax errors in IEStack Overflow
版权声明:本文标题:debugging - Javascript syntax errors in IE - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741929505a2405490.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论