Eclipse removes JS validation

  1. Open the window in the Eclipse menu bar

    Eclipse removes js (JavaScript) validation errors
  2.  

    将windows->preference

    Eclipse removes js (JavaScript) validation errors
  3.  

    Go to Java Script->Validator->Errors/Warnings->Enable Javascript Sematic validation and remove the check;

    Eclipse removes js (JavaScript) validation errors
  4.  

    Right-click the project -> properties -> Builders to remove the check mark in front of JavaScript Validator

    Eclipse removes js (JavaScript) validation errors
  5.  

    If there is no JavaScript Validator in Builders. Then go to the .project file and modify the following: find the project directory, delete the following part of 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 restarting eclipse, or closing the project in eclipse, then restarting Open the project.

    Eclipse removes js (JavaScript) validation errors
  6.  

    Methods to open .project

    Eclipse removes js (JavaScript) validation errors
    Eclipse removes js (JavaScript) validation errors
  7. 7

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

    If the above is still not correct, open the Problems view in Eclipse, select the relevant errors, and solve them according to the prompts.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326310558&siteId=291194637