javaweb-js错误Cannot return from outside a function or method

来源:互联网 发布:手机系统克隆软件 编辑:程序博客网 时间:2024/06/08 14:53

错误提示:cannot return from outside a function or method

解决办法:myeclipse10的jsp页面总是会报这个错误, 出现地是在onClick="return 

check();"等等。

  方法一:window -->preferences -->myeclipse -->validation --

>JavaScript validator for Js    files 把Bulid 复选框的勾去掉 就行了


  方法二:在所建立的工程项目中右键单击,找到myeclipse-->Exclude Form 

Validation单击一下,打上√号。(更管用)

阅读全文
0 0
原创粉丝点击