jquery was used for the project, but after the jquery was copied in, the JS file had a red fork and looked very uncomfortable. Such as:
Workaround:
1. Locate the. project file under Projects
2. Remove JavaScript validation
1 <?XML version= "1.0" encoding= "UTF-8"?>2 <projectdescription>3 <name>Struts2_jquery_json</name>4 <Comment></Comment>5 <Projects>6 </Projects>7 <Buildspec>8 <!-- 9 Remove JavaScript validationTen <buildCommand> One <name>org.eclipse.wst.jsdt.core.javascriptValidator</name> A <arguments> - </arguments> - </buildCommand> the - - <Buildcommand> - <name>Org.eclipse.jdt.core.javabuilder</name> - <arguments> + </arguments> - </Buildcommand> + <Buildcommand> A <name>Org.eclipse.wst.common.project.facet.core.builder</name> at <arguments> - </arguments> - </Buildcommand> - <Buildcommand> - <name>Org.eclipse.wst.validation.validationbuilder</name> - <arguments> in </arguments> - </Buildcommand> to </Buildspec> + <Natures> - <Nature>Org.eclipse.jem.workbench.JavaEMFNature</Nature> the <Nature>Org.eclipse.wst.common.modulecore.ModuleCoreNature</Nature> * <Nature>Org.eclipse.wst.common.project.facet.core.nature</Nature> $ <Nature>Org.eclipse.jdt.core.javanature</Nature>Panax Notoginseng <Nature>Org.eclipse.wst.jsdt.core.jsNature</Nature> - </Natures> the </projectdescription>
3. After modifying the. project file, you need to re-copy the JS file into the project