有谁知道为什么Aptana 3会将jquery-ui的文档中的某些代码识别为错误?例如,语法有效的jquery/javascript语法的错误?
{
"title":
"Accordion Widget",
"excerpt":
"Convert a pair of headers and content panels into an accordion.",
"termSlugs": {
"category": [
"widgets"
]
}
}
Syntax Error: Unexpected Token ":"
那么,什么是错误的? – Musa
难道你不应该'var X = {...};'在'script'标签内吗?没有这些,它就没有意义/功能。或者至少将它作为函数参数传递。 –