Eclipse removes js (JavaScript) validation errors

Step 1:
Remove the JS validation of eclipse
windows->preference->Java Script->Validator->Errors/Warnings->
Enable Javascript Sematic validation; 

Step 2:
Right-click the project -> properties -> Builders to remove the check mark in front of JavaScript Validator
if there is no JavaScript Validator in Builders. Then go to the .project file and modify the following:
find the project directory and delete the following section in the .project file in the project directory:
<buildCommand>
<name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
<arguments ></arguments>
</buildCommand>
and <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
Note that modifying the .project file may require restarting eclipse, or closing the project in eclipse, then restarting Open the project.

Step 3:
Copy the js file to a certain place, then delete the js file that reported the error directly from eclipse, the error disappears, and then copy
the

If the above is still not correct, open the Problems view in Eclipse, select the relevant errors, and solve them according to the prompts.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327031430&siteId=291194637
Recommended