My IE9 is fine with trailing comma, user's IE9 is not; why?

I have a web app with a JavaScript file using code like the following: var foo = {a:'b',c:'d',e:'f',}; On my computer, IE9 (9.0.8112.16421) works correctly; the JavaScript is parsed and executed as on Chrome/FF/Safari. Another user claims to have the same version of IE, yet gets this error in the Developer Tools Console: SCRIPT1028: Expected identifier, string or number blob.js?modified=1304026278, line 524 character 136 _Column 136 is the trailing comma/closing brace for the object literal._ I've 'fixed' the code so the user should have no more problems, but I'm wondering: What could make the same version of IE on two different computers treat the JavaScript differently?

以上就是My IE9 is fine with trailing comma, user's IE9 is not; why?的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏