好久都未很好的解決eclipse對JS的驗證,各類嘗試屢試不爽.今找一牛B方法....看圖.javascript
Right click your project (右單擊工程屬性)java
Select Properties -> JavaScript -> Include(選擇JavaScript下的include菜單)eclipse
Select Source tab (It looks similar to the Java Build Path Source tab)(選擇SOURCE標籤)ui
Expand source folder(展開菜單)spa
Highlight Excluded pattern(選擇Excluded)ip
Click Edit button(點擊edit按鈕)it
Click Add button next to Exclusion patterns box.在新對話框中點擊add按鈕io
Click Browse button and select the JavaScript source by name.(找到須要排除的javascript文件)cli