Syntax error, insert "]" to complete MemberExpression XXX. js (an error is returned when a Java Web Project imports a Jquery file), jquery. autocomplete
If you want to add a jquery plug-in written by someone else to your website project, the following error occurs: Syntax error, insert "]" to complete MemberExpression XXX. js.
If you change it as required, other problems will still occur.
(The html file associated with jquery cannot be added to the project)
Solution:
The procedure is as follows:
1. Open the web project. project file you created, and remove or comment out the following content:
<BuildCommand>
<Name> org. eclipse. wst. jsdt. core. javascriptValidator </name>
<Arguments>
</Arguments>
</BuildCommand>
2. Delete the original js file, restart and copy it again, because the original file has been marked as incorrect by the eclipse project.
Note: restart the MyEclipse open tool.
No error will be reported later.