Home > Web Front-end > JS Tutorial > body text

Eclipse下jQuery文件报错出现错误提示红叉_jquery

WBOY
Release: 2016-05-16 17:03:59
Original
1551 people have browsed it

使用Eclipse 3.7时,工程中加入jquery.xx.js文件,发现该文件出现错误提示(红×),但使用Eclipse 3.7以前的版本就不会出现这种提示。是因为Eclipse 3.7在.project配置文件中,加入了JS验证框架org.eclipse.wst.jsdt.core.javascriptValidator。加入该框架后,如果js文件书写规则不符合规范就会报错。但是工程仍然可以正常运行。于是考虑为了不让错误提示影响心情,删之。工程亦可正常运行。

操作如下:
在该工程根目录下,找到 .project文件,用文件编辑器打开,将节点下的值为org.eclipse.wst.jsdt.core.javascriptValidator的删除,之后再将节点下值为org.eclipse.wst.jsdt.core.jsNature的删除即可。如图:(绿色部分)

Eclipse下jQuery文件报错出现错误提示红叉_jquery 

删除之后,保存文件。回到Eclipse中发现还是报错,将该文件内容全选、剪切、保存、再粘贴、保存。就可以将错误提示清除。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!