错误显示是eclipse不认识jquery语法,关闭掉validation即可,但最好是只关掉jquery相关的文件,其它js的验证还要存在,参考下面:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=349020#c11
按comment 15做就可以了:
I have found that I can leave the JavaScript Validator enable and ignore specific files by adding a suitable exclusion pattern e.g. **/jquery*.js to the JavaScript/Include Path/Source/Excluded group (Project->Properties->JavaScript->Include Path->Source). I found that I also needed to manually delete the old problem markers.如果弄完还有错误提示,删除掉jquery文件再重新加入即可