打开项目的.project文件,将 <buildCommand> <name>org.eclipse.wst.jsdt.core.javascriptValidator</name> <arguments> </arguments> </buildCommand> 跟<nature>org.eclipse.wst.jsdt.core.jsNature</nature> 这两个地方删掉即可。。。。。 或使用<!----> 注释掉。