去掉Myeclipse对JS等文件的验证(Cannot return from outside a function or method)
来源:互联网 发布:中文域名转码工具 编辑:程序博客网 时间:2024/05/16 12:22
在用Myeclipse导入新工程或在写代码时,最郁闷的就是它对js,jsp,html的验证太严格了,有时会呈现一个红叉或者一个黄色的感慨号,一运行就报Cannot return from outside a function or method的错,为此讲解两个解决办法
在用Myeclipse导入新工程或在写代码时,最郁闷的就是它对js,jsp,html的验证太严格了,有时会呈现一个红叉或者一个黄色的感慨号,一运行就报Cannot return from outside a function or method的错,为此讲解两个解决办法,本文解决Cannot return from outside a function or method的错。
方法/步骤
1、选中当前工程,右键单击properties,弹出properties界面
2、然后选择MyEclipse—>validation—>Excluded Resource下找到不需要验证的文件或者文件夹
3、在不需要验证的文件或者文件夹前打勾,然后点击 "OK"按钮保存。我的js,jsp,html在webroot下,所以我
4、解决Cannot return from outside a function or method报的错。法一:在MyEclipse菜单栏window --->preferences --->myeclipse --->validation --->javascript validator for Js files 把Bulid 复选框的勾去掉 就可以了
5、法二:在所建立的工程项目上右键单击,找到myeclipse-->Exclude Form Validation单击一下,打上√号,js的错误就没了!
注意:上面介绍了如何去掉Myeclipse对JS等文件的验证,一个从根本上解决问题,一个是解决报错的问题。
0 0
- 去掉Myeclipse对JS等文件的验证(Cannot return from outside a function or method)
- 去掉Myeclipse对JS等文件的验证(Cannot return from outside a function or method)
- Myeclipse出现Cannot return from outside a function or method
- MyEclipse消除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
- myeclipse 10 加载新的项目报错Cannot return from outside a function or method
- return confirm Cannot return from outside a function or method
- Cannot return from outside a function or method
- Cannot return from outside a function or method
- 【解决方法】Cannot return from outside a function or method
- myeclipse10:Cannot return from outside a function or method.
- Cannot return from outside a function or method
- Cannot return from outside a function or method
- Cannot return from outside a function or method
- Cannot return from outside a function or method
- “Cannot return from outside a function or method”
- BUG:Cannot return from outside a function or method
- 02-线性结构4 Pop Sequence (25分)
- 【索引】Codeforces
- 错误51error LNK1112: 模块计算机类型“X86”与目标计算机类型“x64”冲突 opencv_core248d.lib opencv_core248d.dll
- linux
- 数据挖掘十大经典算法(4)Apriori
- 去掉Myeclipse对JS等文件的验证(Cannot return from outside a function or method)
- YII2 安装
- 第九周项目4-广义表算法库及应用(2)
- synchronized 和 Lock
- 源码-Oracle数据库管理-第十一章-Oracle内置函数-Part 4(类型转换函数)
- 求出0~n内 数字9出现的个数
- MongoDB
- 2016年8月19日-第三章练习
- 加载大图片