在 Eclipse 中使用 JSHint 检查 JavaScript 代码
2015-07-16 10:26
716 查看
JSHint Home: http://www.jshint.com/
JSHint Options: http://www.jshint.com/options/
JSHint For Eclipse: http://github.eclipsesource.com/jshint-eclipse/
安装方法
最新稳定版本更新网址:
http://github.eclipsesource.com/jshint-eclipse/updates/
在Eclipse主菜单,点击: Help > Install New Software…
输入上面的URL,然后选择 JSHint Eclipse Integration
后面的安装过程很简单,往下按确定就可以了
更新方法
如果已经安装了,则可以更新:
在Eclipse主菜单,点击: Help > Check for Updates
卸载方法
按如下方式即可卸载:
在Eclipse主菜单,点击: Help > About Eclipse > Installation Details
选择 JSHint Eclipse Integration,点击 Uninstall
使用方法
选择要启用校验的项目,右键->属性,选择JSHint 项,配置启用校验的文件和文件夹,配置文件的示例如下:
原文 http://www.html5cn.org/portal.php?mod=view&aid=5523
JSHint Options: http://www.jshint.com/options/
JSHint For Eclipse: http://github.eclipsesource.com/jshint-eclipse/
安装方法
最新稳定版本更新网址:
http://github.eclipsesource.com/jshint-eclipse/updates/
在Eclipse主菜单,点击: Help > Install New Software…
输入上面的URL,然后选择 JSHint Eclipse Integration
后面的安装过程很简单,往下按确定就可以了
更新方法
如果已经安装了,则可以更新:
在Eclipse主菜单,点击: Help > Check for Updates
卸载方法
按如下方式即可卸载:
在Eclipse主菜单,点击: Help > About Eclipse > Installation Details
选择 JSHint Eclipse Integration,点击 Uninstall
使用方法
选择要启用校验的项目,右键->属性,选择JSHint 项,配置启用校验的文件和文件夹,配置文件的示例如下:
原文 http://www.html5cn.org/portal.php?mod=view&aid=5523
相关文章推荐
- JS的parent、opener、self对象
- JS在页面限制checkbox最大复选数
- JavaScript常用技巧
- 浅谈javascript中的DOM方法
- 解析Json
- JS基础类型和引用类型
- angualrjs $scope 详细分析
- js无法删除cookie问题
- 详细分析JavaScript函数定义
- jsp和servlet映射关系
- JavaScript高级程序设计【面向对象-继承】
- 利用JavaScriptCore实现简单的功能(阶乘)
- javaScript学习笔记2
- 利用JavaScriptCore实现以下简单的功能(平方和)
- JSTL与EL之间的千丝万缕
- js中typeof的用法
- js里父页面与子页面的相互调用
- 跟着 8 张思维导图学习 Javascript
- JS事件监听 JS:attachEvent和addEventListener 使用方法
- js中addEventListener中第3个参数