Eclipse removes JavaScript validation errors

Source: Internet
Author: User

This article is mainly about eclipse removal js (JavaScript) validation errors. In eclipse, JS files often get an error. There are several steps you can take to resolve

Step One: remove the JS validation from eclipse: Windows->preference->java script->validator->errors/warnings-> Enable Javascript sematic Validation in front of the hook removed;

Step Two: right-click Project-Properties--Builders remove JavaScript Validator front tick If there is no JavaScript Validator in Builders. So go to the. project file, modify the following: Locate the project directory and delete the sections in the. project file in the project directory: <buildCommand> <name> Org.eclipse.wst.jsdt.core.javascriptvalidator</name> <arguments></arguments> </buildcommand > and <nature>org.eclipse.wst.jsdt.core.jsNature</nature> Note that Modifying the. project file may require you to restart Eclipse, or close the project in Eclipse, and then reopen the project.

The third step: Copy the JS file to a place, and then delete the error from eclipse the JS file, errors disappear, and then the JS file just copied in.

If this is not the case, just open problems view in Eclipse, select the relevant error, and follow the prompts to resolve it.

Eclipse removes JavaScript validation errors

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.