Java – using jquery-1.7 1.min. JS compilation error

I'm trying to run dynamic web projects using Maven and spring I have one using jquery-1.7 1.min. JS code But I see compilation errors in the file The following is a screenshot of the error

Does anyone have the same problem or know how to solve it

thank you

Solution

From http://imwill.com/eclipse-java-ee-jquery-validation-error-workaround/#.UK7jAOOe -From i5

Workaround – how to fix to get rid of annoying error symbols:

1) Right click the project root folder in the eclipse Project Explorer view

2) Go to properties – > JavaScript – > include path – > source tag

3) Select excluded and edit... And add

4) Now, you can browse the JavaScript file with errors, or you can just enter a wildcard pattern, which will exclude anything that matches the pattern In my case, I enter * * / jQuery * JS to exclude all jQuery library files

5) Then you can click OK, finish and OK again

6) Your eclipse progress view should now display the building workspace message

7) Tada! The error symbol disappeared!

In addition to the above steps, I have to manually delete the old problem mark

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>