The following is the entire description brought to you by the editor on how to solve the error when introducing jquery into Eclipse. The specific content is as follows:
Step one:
Remove eclipse’s JS verification:
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 uncheck 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>
and
Note that modifying the .project file may require restarting eclipse, or closing the project in eclipse and then reopening the project.
Step 3:
Copy the js file somewhere, then delete the js file that reported the error directly from eclipse, the error disappears, and then copy in the js file just now.
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.