The following is a description of how eclipse introduces the jquery error resolution, as shown in the details below:
First step:
Get rid of Eclipse's JS validation:
Will Windows->preference->java script->validator->errors/warnings->
Enable Javascript sematic Validation The front of the hook to remove;
Step Two:
Right-key Item-> Properties-> Builders Remove the tick in front of the JavaScript Validator if the builders does not have JavaScript Validator. Then go to the. project file to modify the following:
Locate the project directory and delete the following sections 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 you to restart Eclipse, or close the project in Eclipse, and then reopen the project.
Step Three:
Copy the JS file to a place, and then directly delete the error from Eclipse JS file, errors disappear, and then the JS file in the copy.
If it's not right, just open problems view in eclipse, check the relevant error, and follow the prompts to resolve it.