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

Eclipse引入jquery报错如何解决_jquery

WBOY
Release: 2016-05-16 15:28:37
Original
1592 people have browsed it

以下内容是小编给大家带来的关于Eclipse引入jquery报错如何解决的全部叙述,具体内容如下所示:

第一步:

去除eclipse的JS验证:

将windows->preference->Java Script->Validator->Errors/Warnings->

Enable Javascript Sematic validation前面的勾去掉;

第二步:

右键项目 -> properties -> Builders 去掉JavaScript Validator 前面的勾,如果Builders中没有JavaScript Validator这一项。那么去.project文件中修改如下内容:

找到项目目录,删除项目目录里的 .project 文件中的以下部分:


org.eclipse.wst.jsdt.core.javascriptValidator

Copy after login

org.eclipse.wst.jsdt.core.jsNature

注意,修改.project文件可能会要求重启eclipse,或者在eclipse中关闭该工程,然后重新打开工程。

第三步:

复制该js文件到某个地方,然后从eclipse中直接删除 了报错的js文件,错误消失,再把刚才那个js文件拷进来。

如果以上做了之后还不对的吧,就在Eclipse中打开Problems view,选中相关的错误,根据提示,进行解决。

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!