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.
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.
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
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
The above is mainly a solution for MyEclipse, which is to follow the screenshots and manually let MyEclipse recognizes js file references
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.
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.
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!