首页 > 学院 > 开发设计 > 正文

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

2019-11-14 21:21:01
字体:
来源:转载
供稿:网友
java文件中出现这样的提示错误与解决方法:Cannot return from outside a function or method?

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

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

图1

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

图2

4.Apply >> ok!

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


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表