本文转自:http://blog.csdn.net/u011159417/article/details/73916676

问题描述

项目中需要使用jQuery,因此下载了jQuery的js包jquery-3.2.1.js,将jquery-3.2.1.js导入myeclipse10的项目中,结果js报错:Syntax error on token "catch", Identifier expected,如图:

js出现Syntax error on token "catch", Identifier expected

 

解决方案

也很简单,下面介绍一下,解决步骤:

1、选中jQuery报错的web工程;

2、右键-->Myeclipse-->Exclude From Validation,选中;

3、继续右键Myeclipse-->Run Validation。

 

通过以上3步,问题就解决了,报错消失,如图:

 

js出现Syntax error on token "catch", Identifier expected

 

相关文章:

  • 2022-12-23
  • 2022-01-18
  • 2021-07-07
  • 2022-12-23
  • 2022-12-23
  • 2021-06-29
  • 2022-12-23
  • 2021-12-27
猜你喜欢
  • 2021-04-25
  • 2021-10-08
  • 2021-11-19
  • 2022-12-23
  • 2021-05-19
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案