1.打开  >>  Myeclipse或Eclipse.(我使用的是Myeclipse)

2.打开  >>  Window  >>  Preferences  如图1:

Java文件中出现这样的提示错误与解决方法:Cannot return from outside a function or method?...

图1

3.打开  >>  Preferences  >>  MyEclipse  >>  Validation  >>  JavaScript validator for JS files(Bulid中的"√"去掉)  如图2:

Java文件中出现这样的提示错误与解决方法:Cannot return from outside a function or method?...

图2

4.Apply  >>  ok!

*5.另一种方法:项目右键  >>  MyEclipse  >>  Exclude  From Validation(打"√")

相关文章:

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