MyEclipse取消 js 、jsp 校验功能 解决“Cannot return from outside a function or method”错误

我们在开发的过程中,经常会发现js、jsp页面出现红色错误提示出现“Cannot return from outside a function or method”错误,这是因为MyEclipse对js、jsp页面校验不好所导致的,解决方法就是把校验功能关掉就OK了!
在MyEclipse中选择 Window --> Preferences
MyEclipse取消 js 、jsp 校验功能 解决“Cannot return from outside a function or method”错误
选择 Myeclipse --> Validation
MyEclipse取消 js 、jsp 校验功能 解决“Cannot return from outside a function or method”错误
在 Validation 中找到 javascript validator for Js files 把后面的 Bulid 复选框的勾去掉
MyEclipse取消 js 、jsp 校验功能 解决“Cannot return from outside a function or method”错误
保存之后刷新一下项目,如果不行的话就重启一下MyEclipse问题解决