Run Validation" in sequence."/> Run Validation" in sequence.">

Home  >  Article  >  Web Front-end  >  How to solve the problem of error reporting when introducing jquery

How to solve the problem of error reporting when introducing jquery

藏色散人
藏色散人Original
2020-12-31 10:11:493215browse

Introduce jquery error reporting solutions: 1. Locate the cause of the error, then find the MyEclipse option and select "Exclude From Validation"; 2. Select "MyEclipse->Run Validation" in sequence.

How to solve the problem of error reporting when introducing jquery

The operating environment of this tutorial: Dell G3 computer, Windows 7 system, jquery2.1.4&&MyEclipse Enterprise Workbench8.5 version.

Recommended: "javascript basic tutorial""jquery tutorial"

Importing jquery-2.1.4.min.js will be in MyEclipse Error report, solution steps:

Step 1: Locate the cause of the error: Because the imported MyEclipse2014 or MyEclipse2016 has js recognition settings, MyEclipse and Eclipse do not have too many IDE integrated tools and will not automatically recognize jquery-2.1. 4.min.js, because this is a class library; then when you learn jquery-2.1.4.min.js, you will import jquery-2.1.4.min.js; this is the basis for starting with JQuery.

How to solve the problem of error reporting when introducing jquery

Step 2; How to solve this error: In MyEclipse, select the project you imported or the JAVAweb project where jquery-2.1.4.min.js is located; mouse Select right-click; then find the MyEclipse option; select [Exclude From Validation]; this way the error will not be reported again

How to solve the problem of error reporting when introducing jquery

The third step; if the previous step does not It takes effect; if there are too many js files similar to jquery-2.1.4.min.js you imported, then set them separately: continue to the second step in MyEclipse2014--"MyEclipse---"[Run Validation]; like this It is definitely solved; then deploy and run it directly on Tomcat, and you can use the JAVAweb project

How to solve the problem of error reporting when introducing jquery

The above is mainly a solution for MyEclipse, which is to follow the screenshots and manually let MyEclipse recognizes js file references

How to solve the problem of error reporting when introducing jquery

For IDEAL to be unable to recognize js, it is mainly the community version. If it is the integrated version, this situation will not occur.

How to solve the problem of error reporting when introducing jquery

For IDEAL, the IDE development tool, it is simpler. It mainly opens all referenced juery files such as js. IDEAL has an automatic matching function. Faster and more convenient than MyEclipse.

How to solve the problem of error reporting when introducing jquery

For more programming-related knowledge, please visit: Programming Teaching! !

The above is the detailed content of How to solve the problem of error reporting when introducing jquery. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn