比如: Cannot return from outside a function or method

                   onClick="return check();"出现错误等等

      本人略总结了一点小方法,供参考:

      方法一:window -->preferences -->myeclipse -->validation -->javascript validator for Js    files 把Bulid 复选框的勾去掉 就行了

如下图所示:

 

【Eclipse常见错误】-Cannot return from outside a function or method

方法二:

在所建立的工程项目中右键单击,找到myeclipse-->Exclude Form Validation单击一下,打上√号,即可看到奇迹出现哦,js的错误已经没了!

图例如下:

 

【Eclipse常见错误】-Cannot return from outside a function or method

相关文章:

  • 2021-12-19
  • 2021-09-09
  • 2021-08-25
  • 2021-09-21
  • 2022-12-23
  • 2021-12-22
  • 2021-05-20
  • 2022-12-23
猜你喜欢
  • 2021-09-09
  • 2021-10-06
  • 2021-07-25
  • 2022-12-23
相关资源
相似解决方案