Syntax error, insert & quot;] & quot; to complete MemberExpression XXX. js (an error is returned after the Java Web Project imports the Jquery file), jquery. autocomplete

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.