JQuery file error under Eclipse error prompt Red Cross

  • 2020-03-30 01:22:53
  • OfStack

When you use Eclipse 3.7, you add the jquery. X.js file to your project, and you see an error (red x ) in that file, which you would not have seen in previous versions of Eclipse 3.7. Because Eclipse in 3.7. The project profile, joined the JS validation framework org. The Eclipse WST. JSDT. Core. JavascriptValidator. After joining the framework, if the js file writing rules do not conform to the specification, an error will be reported. But the project is still working. So consider deleting the error message to prevent it from affecting your mood. The project can also run normally.

The operation is as follows:
In the project root directory, find the.project file, open it with the file editor, and BuildSpec> Under the node < Name> Value of org. Eclipse. WST) JSDT). The core of javascriptValidator < BiildCommand> Delete, and then add < Natures> Under the node value of org. Eclipse. The WST. JSDT. Core. JsNature < Nature> Delete it. As shown :(in green)

< img SRC = "border = 0 / / files.jb51.net/file_images/article/201401/201401131552071.gif? 2014013155245 ">  

After deleting, save the file. Return to Eclipse to find an error, and select, cut, save, paste, and save all the contents of the file. You can clear the error.

Related articles: