Safari中的奇怪解析错误 [英] strange parse error in Safari
本文介绍了Safari中的奇怪解析错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在Safari(4.0.3 / Mac)中加载我的一个脚本时遇到了一个奇怪的错误:
Hi,
I’ve encountered quite a strange error when loading one of my scripts in Safari (4.0.3/Mac):
语法错误:解析错误... / mod_core.js:26
SyntaxError: Parse error …/mod_core.js:26
我不知道Safari正在抱怨什么,因为它适用于FF 3.5和Opera 10,你们有没有想法?
谢谢,Dormi
I have no idea, what Safari is complaining about, since it works in FF 3.5 and Opera 10, does anyone of you have an idea?
thanks, Dormi
展开 | 选择 | Wrap | 行号
推荐答案
Safari是唯一一个奇怪的浏览器吗?
IE? FF? gChrome? Opera?
Safari不支持原型设计吗?
我是否认为你已经通过评论线来查看它是否是一条特定的线路问题?
Is Safari the only browser it does weird things in?
IE? FF? gChrome? Opera?
Does Safari not support prototyping?
Am I to assume you have gone through commenting out lines to see if it was one particular line that was the problem?
@Plater
是的(虽然我没有测试Camino和Shiira有XHTML错误)
@Dormilich
没有原生IE和Chrome for Mac。 Safari确实支持原型设计(之前的24行仅用于另一个原型)
@Plater
共有3个错误,但是其他两个只是后续工作
@Plater
yes (though I didn?t test Camino and Shiira has an XHTML bug)
@Dormilich
there is no native IE and Chrome for Mac. And Safari does support prototyping (the previous 24 lines are for just another prototype)
@Plater
there have been altogether 3 errors, but the other two are just follow-ups
语法错误:解析错误?/schach_2.js:144
SyntaxError: Parse error ?/schach_2.js:144
这是方法调用
that is the method call
展开 | 选择 | Wrap | 行号
所以在代码上方有一个几乎相同的外观函数,它没有错误?
它不像需要的那样愚蠢;在扩展函数定义中的结束大括号之后(因此其他函数也是如此)?
So there is an almost identical looking function right above it in the code that gives no errors?
Its not something as dumb as needing a ; after the ending curly brace in the extend function definition is it(and thus the other functions like it as well)?
展开 | 选择 | 换行 | 行号
这篇关于Safari中的奇怪解析错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文