在myeclipse中对导入js文件时报错的解决方法

一:今天在MyEclipse中加入jquery-1.4.2.js时,出现以下错误,附上图片和错误代码:


error1:DescriptionResourcePathLocationType

Syntax error on token "undefined", invalid FormalParameterjquery-1.4.2.js/JqueryTrain/WebRoot/jsline 1JavaScript Problem

error2: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 即可


附上图片:


猜你喜欢

转载自blog.csdn.net/siyi1219/article/details/80581535