在myeclipse中對匯入js檔案時報錯的解決方法
阿新 • • 發佈:2019-02-20
一:今天在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:
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 即可
附上圖片: