解决方法:

1.可能之前安装了JSHint,那先在eclipse->Help->Installation Details里面卸载(Uninstall...)

2.* Right Click Project => 
    Build Path => 
    Configure Build Path => 
    Builders

* In the right hand side , make sure JavaScript Validator is Unchecked, if not uncheck it.

3.I removed the tag in the .project .
    <buildCommand>
        <name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
        <arguments>
        </arguments>
    </buildCommand>
  It's worked very well for me.
  说明:只要是含有javascriptValidator这个关键字的buildCommand就移除,比如我的buildCommand是这样的
  <buildCommand>
      <name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
      <triggers>full,incremental,</triggers>
      <arguments>
          <dictionary>
              <key>LaunchConfigHandle</key>
              <value>&lt;project&gt;/.externalToolBuilders/org.eclipse.wst.jsdt.core.javascriptValidator (1).launch</value>
          </dictionary>
      </arguments>

</buildCommand>

4.* Open your project's .project file in a text editor.
  * Remove the line <nature>org.eclipse.wst.jsdt.core.jsNature</nature>

* Refresh your project

5.* Right click your project
  * Select Properties -> JavaScript -> Include
  * Select Source tab (It looks similar to the Java Build Path Source tab)
  * Expand source folder
  * Highlight Excluded pattern
  * Click Edit button
  * Click Add button next to Exclusion patterns box.

* Click Browse button and select the JavaScript source by name.

6.Window > Preferences… > JavaScript > Validator > Errors/Warnings and uncheck the box.

7.操作完上面的步骤之后,在Problems透视图里面还有Errors,那我们要手动删除这些Errors,然后刷新一下项目,再Project=>Clean一下就OK了

eclipse项目里javascript总是验证,且出现最多的error是 Description Resource Path Location Type Syntax error on toke相关推荐

  1. Eclipse项目红叉:报错Description Resource Path Location Type Target runtime Apache Tomcat v8.0 is not defin

    在学习机房写的项目,tomcat版本是8.0的,然后用u盘拷到自己的电脑上,导入项目,就出现了: 但是项目中并没有错误,后来看报错信息发现: 是tomcat版本不对,于是乎:打开项目下的.settin ...

  2. maven 警告:Description Resource Path Location Type Classpath entry org.eclipse.m2e.MAVE

    异常描述: > *Classpath entry org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER will not be exported or ...

  3. Description Resource Path Location Type Classpath entry org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER w

    Classpath entry org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER will not be exported or published. Runtim ...

  4. Eclipse 报错The method xxx of type must override a superclass method、Description Resource Path Locati

    问题: 如上图, 没改钱@Override会报错The method run() of type must override a superclass method 原因: java1.5中继承接口是 ...

  5. eclipse项目红叉,Target runtime Apache Tomcat 6.0 is not defined

    Target runtime Apache Tomcat 6.0 is not defined 1.导入以前的项目(Problems中查看),报以下错误,但不影响操作: Description Res ...

  6. eclipse项目两个红点

    Description Resource Path Location Type Unbound classpath container: 'JRE Sy 选中项目右键build path 选择libr ...

  7. eclipse项目出现感叹号——快速解决

    >>>>>>>快速解决>>>>>> eclipse项目出现红色感叹号,一般都是jar报错了,Build Path配置一下即 ...

  8. 如何从我的eclipse项目中删除javascript验证?

    本文翻译自:How do I remove javascript validation from my eclipse project? I am using eclipse on my projec ...

  9. Eclipse去除js(JavaScript)验证错误

    这篇文章主要是对Eclipse去除js(JavaScript)验证错误进行了介绍.在Eclipse中,js文件常常会报错.可以通过如下几个步骤解决 第一步: 去除eclipse的JS验证: 将wind ...

最新文章

  1. 现半透明的popupwindow
  2. 3.1.2 vernam 代数密码
  3. Play on Words UVA - 10129 (有向图欧拉路径)
  4. mlp神经网络_白天鹅黑天鹅灰天鹅?卷积神经网络帮你搞定识别
  5. Android项目实战欢迎界面
  6. hashmap有关问题与计算
  7. 面试时会谈薪的人一开口就赢了:让你薪资翻倍的谈薪技巧
  8. C语言strstr函数实现
  9. 计算机二级证学的什么,考计算机二级证需要学什么
  10. WEB交互的划时代革新--HTML5中WebSocket应用【1】
  11. 虚拟机自动安装linux操作系统(kickstart+pxe+dhcp+tftp)
  12. 【ABAP系列】SAP ABAP的事件执行顺序
  13. 产品经理工具之软件篇
  14. 8086cpu物理寻址
  15. 什么是md5码,md5码有什么用?
  16. 一文读懂ICS工业控制系统架构
  17. overleaf下载word版本
  18. 用电脑无线投屏到电视屏幕的连接方法
  19. 原生Array.isArray()判断对象是否为数组
  20. Android开发技巧!怒斩获了30家互联网公司offer,大厂直通车!

热门文章

  1. Linux网络协议栈:关闭一个还有没发送数据完的TCP连接
  2. 【转】C++从零实现神经网络
  3. Linux的TUN/TAP编程
  4. 如何组织软件模块的代码结构?
  5. 国际C语言混乱代码大赛
  6. GPU Architect Functional Verification
  7. python库之sklearn(机器学习)
  8. Centos中iptables和firewall防火墙
  9. mysql 备份表_Mysql 表的备份与恢复
  10. css3直线运动_CSS3中如何使元素曲线运动