從官方下載的jquery.js在myeclipse始終用個大大的紅叉,看着很不爽,如何解決呢:jquery.js在myeclipse中報錯:jquery.js -> 鼠標右鍵 -> MyEclipse -> manage validation -> 左面點擊 -> Excluded resources -> 找到jquery.js -> 打上鈎 -> apply
---------------------
作者:lgp88864237
來源:CSDN
原文:https://blog.csdn.net/LGP88864237/article/details/51720237
Eclipse中Jquery報錯
在網上看到很多 jQuery-xxx.js 在eclipse中報錯的解決方案大多是說 項目右鍵 Properties->Validation->JSP Content Validator 這項的右邊點擊 ... 按鈕,然后點 Add Exclude Group->在 Exclude Group 點 Add Rule->Folder or file name 然后選到 jquery-xxxx.js 文件。 我試過了,還是報錯報紅。 后來發現還有一個方法更有效,原文如下
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.
摘自https://bugs.eclipse.org/bugs/show_bug.cgi?id=349020#c15
翻譯過來就是
項目右鍵 Properties->JavaScript->Include Path->Source
然后點選你項目名稱下得 webapp 里面的 Exclude:(None)再點 Edit
把在Exclude 里面點 add 把 **/jquery*.js 規則添加進去
保存后就好
然后把JQuery-xxx.js里面剪切保存一下,讓錯誤消掉,然后再粘貼回去,保存 。
轉載自:https://www.cnblogs.com/hxsyl/p/6139368.html。