Want to add a jquery plugin written by someone else in your site project, can be imported after the total error: Syntax error, insert "]" to complete memberexpression xxx.js
It's going to change, or something else will happen.
(The HTML files associated with jquery that are not joined to project can be run)
Workaround:
The process steps are as follows:
1. Open the Web project you have built. project file, and remove or comment out the following:
<buildCommand>
<name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
<arguments>
</arguments>
</buildCommand>
2. Delete the original JS, restart the copy, because the original file has been marked as an Eclipse project error.
Note: Remember to restart the MyEclipse open tool
Then you won't get an error.
Syntax error, insert "]" to complete memberexpression xxx.js (Error when Java Web Project imports jquery files)