How to solve the error when jquery is introduced in Eclipse _ jquery

Source: Internet
Author: User
A friend asked me that I encountered such a problem when using eclipse -- an error was reported after eclipse imported the jquery package -- why did this problem occur? How can this problem be solved? The following is a small series of solutions for you. Let's take a look at the following content for all the explanations about how to solve jquery errors introduced by Eclipse. The specific content is as follows:

Step 1:

Remove JS verification from eclipse:

Choose windows> preference> Java Script> Validator> Errors/Warnings>

Enable Javascript Sematic validation;

Step 2:

Right-click the project and choose properties> Builders to remove the check box before JavaScript Validator. If JavaScript Validator is not found in Builders. Modify the following content in the. project file:

Find the project directory and delete the following parts of the. project file in the project directory:

 

  
   
Org. eclipse. wst. jsdt. core. javascriptValidator

  

 

And Org. eclipse. wst. jsdt. core. jsNature

Note: modifying the. project file may require you to restart eclipse, or close the project in eclipse, and then re-open the project.

Step 3:

Copy the js file to a certain place, and then delete the js file that reported the error from eclipse. The error disappears, and then copy the js file.

If it is not correct after the above steps, open the Problems view in Eclipse, select the relevant errors, and solve them as prompted.

Related Article

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.