Myeclipse10.0关于javascript的一个错误提示的Bug:Cannot return from outside a function or method
2014-06-18 20:38
232 查看
今天打算用MyEclipse看一个web项目,可是项目中提示有错误,打开一看是在js中使用如
在表单<form name="form1" ...... onsubmit="return check();">中
提示onclick="return check();"处出错。
解决方法有四种:
1.无视错误(可以识别其他的JS错误),只有该处用法提示错误的信息;
2.更换其他较旧的MyEclipse版本;
3.Window --> Preferences --> MyEclipse --> Validation --> JavaScript validator for JS files,将Bulid 复选框的勾去掉就行了,带来的后果就是不能对JS错误进行验证。
4.https://bugs.eclipse.org/bugs/show_bug.cgi?id=353209 此链接有解决方法,话说我试了自己的不好使啊,但是有人的没问题。
PS:我觉得还是无视的好,当然强迫症的话还是换旧版本好了
在表单<form name="form1" ...... onsubmit="return check();">中
提示onclick="return check();"处出错。
解决方法有四种:
1.无视错误(可以识别其他的JS错误),只有该处用法提示错误的信息;
2.更换其他较旧的MyEclipse版本;
3.Window --> Preferences --> MyEclipse --> Validation --> JavaScript validator for JS files,将Bulid 复选框的勾去掉就行了,带来的后果就是不能对JS错误进行验证。
4.https://bugs.eclipse.org/bugs/show_bug.cgi?id=353209 此链接有解决方法,话说我试了自己的不好使啊,但是有人的没问题。
PS:我觉得还是无视的好,当然强迫症的话还是换旧版本好了
相关文章推荐
- Java文件中出现这样的提示错误与解决方法:Cannot return from outside a function or method?
- myeclipse 10.0 出现 Cannot return from outside a function or method
- myeclipse 10.0 出现 Cannot return from outside a function or method
- MyEclipse消除Cannot return from outside a function or method.
- BUG:Cannot return from outside a function or method
- Myeclipse出现Cannot return from outside a function or method
- myeclipse 10 JSP页面遇到的问题:Cannot return from outside a function or method
- 怎样去除JSP页面提示:Cannot return from outside a function or method.
- Myeclipse 之“Cannot return from outside a function or method”
- drp错误集锦---“Cannot return from outside a function or method”
- 关于MyEclipse较检异常 Invalid result location value/parameter 及Cannot return from outside a function or
- MyEclipse Multiple annotations found at this line: - Cannot return from outside a function or method
- myeclipse 10 JSP页面遇到的有关问题:Cannot return from outside a function or method
- Cannot return from outside a function or method onClick="return check();"出现错误等等
- myeclipse 10 JSP页面遇到的问题:Cannot return from outside a function or method
- 去掉Myeclipse对JS等文件的验证(Cannot return from outside a function or method)
- drp错误集锦---“Cannot return from outside a function or method”
- 去掉Myeclipse对JS等文件的验证(Cannot return from outside a function or method)
- 【Eclipse常见错误】-Cannot return from outside a function or method
- Cannot return from outside a function or method