eclipse中怎么去掉js的验证

JavaScript06

eclipse中怎么去掉js的验证,第1张

eclipse中去掉js的验证方法步骤如下:

1、windows->preference->Java Script->Validator->Errors/Warnings->Enable Javascript Sematic validation前面的勾去掉

2、右键项目 ->properties ->Builders 去掉JavaScript Validator 前面的勾,如果Builders中没有JavaScript Validator这一项。那么去.project文件中修改如下内容:

找到项目目录,删除项目目录里的 .project 文件中的以下部分:

<buildCommand>

<name>org.eclipse.wst.jsdt.core.javascriptValidator</name>

<arguments></arguments>

</buildCommand>

<nature>org.eclipse.wst.jsdt.core.jsNature</nature>

注意,修改.project文件可能会要求重启eclipse,或者在eclipse中关闭该工程,然后重新打开工程。

3、在项目的根结点上进行“刷新”,错误将不再提示

eclipse去掉js验证方法:

1打开Eclipse 菜单栏里的window

2右键选择Preferences:

3选择Validation你不需要验证的去掉勾就可以了,点击ok。

步骤如下:

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的错误就没了!

扩展资料

eclipse快捷方式

<!--[if !supportLists]-->0. Ctrl + 1 (快速修复)

<!--[if !supportLists]-->1. Ctrl + D (删除当前行)

<!--[if !supportLists]-->2. Ctrl + Alt + ↓(复制当前行到下一行)

<!--[if !supportLists]-->3. Alt + / 或者说是 Ctrl + 空格(由于后者与输入法的快捷键冲突,所以,我一般都用前者) 作用:快速插入。

<!--[if !supportLists]-->4. Alt+Shift+R 重命名非常好用。

<!--[if !supportLists]-->5. Ctrl + Q 定位到最后编辑的地方。

<!--[if !supportLists]-->6. Ctrl + Shift + O 自动导入包。

<!--[if !supportLists]-->7. Ctrl+/ 注释当前行,再按则取消注释。

<!--[if !supportLists]-->8. Ctrl+K快速查找。

<!--[if !supportLists]-->9. Ctrl + Shift + F 自动缩进。

参考资料来源:百度百科:eclipse