Eclipse under the jquery file error prompts Red Fork _jquery

Source: Internet
Author: User
When using Eclipse 3.7, the project added the Jquery.xx.js file and found that the file was prompted with an error (red X), but the previous version of Eclipse 3.7 did not show up. This is because Eclipse 3.7 joins the JS validation framework org.eclipse.wst.jsdt.core.javascriptValidator in the. Project configuration file. After joining the framework, if the JS file writing rules do not conform to the specification will be an error. But the project will still work. So consider in order not to let the wrong hint affect mood, delete it. The project can also operate normally.

The operation is as follows:
At the root of the project, locate the. project file, open it with the file editor, and set the <name> under the <buildSpec> node The value is Org.eclipse.wst.jsdt.core.javascriptValidator <biildCommand> deleted, and then the <natures> The value below the node is Org.eclipse.wst.jsdt.core.jsNature <nature> deleted. As shown in figure: (Green part)



Save the file after you delete it. Return to eclipse to find or error, the contents of the file selected, cut, save, then paste, save. You can clear the error message.
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.