Home > Web Front-end > JS Tutorial > Eclipse remove js file verification error solution

Eclipse remove js file verification error solution

小云云
Release: 2018-02-24 13:26:29
Original
1772 people have browsed it

This article mainly introduces the removal of js (JavaScript) verification errors in Eclipse. In Eclipse, js files often report errors. It can be solved through the following steps:

The first step:
Remove the JS verification of eclipse:
Change windows->preference->Java Script->Validator-> ;Errors/Warnings->
Remove the check mark in front of Enable Javascript Sematic validation;

Step 2:
Right-click the project-> properties -> Builders and remove the check mark in front of JavaScript Validator
If there is no JavaScript Validator item in Builders. Then go to the .project file and modify the following content:
Find the project directory and delete the following parts of the .project file in the project directory:

<buildCommand>
<name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
<arguments></arguments>
</buildCommand>
和<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
Copy after login

Note that modifying the .project file may require a restart eclipse, or close the project in eclipse and then reopen the project.

The third step:
Copy the js file somewhere, then delete the js file reporting the error directly from eclipse, the error disappears, and then copy the
js file just now Copy it in.

If it still doesn’t work after doing the above, open the Problems view in Eclipse, select the relevant error, and solve it according to the prompts.

Related recommendations:

Eclipse PHPEclipse specific configuration method

Use Eclipse to connect to mysql database

Eclipse operation summary

The above is the detailed content of Eclipse remove js file verification error solution. For more information, please follow other related articles on the PHP Chinese website!

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