码迷,mamicode.com
首页 > Web开发 > 详细

在eclipse中引入jquery.js文件报错的解决方案

时间:2018-10-22 22:20:16      阅读:188      评论:0      收藏:0      [点我收藏+]

标签:script   分享   logs   ble   网上   blog   content   tab   右键   

从官方下载的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

 

在网上看到很多 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。

 

在eclipse中引入jquery.js文件报错的解决方案

标签:script   分享   logs   ble   网上   blog   content   tab   右键   

原文地址:https://www.cnblogs.com/liaoxiaolao/p/9833249.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!