一:今天在MyEclipse中加入jquery-1.4.2.js时,出现以下错误,附上图片和错误代码:
error1:DescriptionResourcePathLocationType
Syntax error on token "undefined", invalid FormalParameterjquery-1.4.2.js/JqueryTrain/WebRoot/jsline 1JavaScript Problemerror2:DescriptionResourcePathLocationType
String literal is not properly closed by a double-quotejquery-1.4.2.js/JqueryTrain/WebRoot/jsline 2908JavaScript Problem
error3:DescriptionResourcePathLocationType
Syntax error on token ",", . expectedjquery-1.4.2.js/JqueryTrain/WebRoot/jsline 2659JavaScript Problem
二:解决办法如下:
1.选中你导入出错的那个jquery文件,比如我的是:jquery-1.4.2.js
2.右键选择 MyEclipse-->Exclude From Validation
3.然后继续右键执行MyEclipse-->Run Validation 即可
附上图片: