JSLint for Eclipse

参考:http://www.andyjamesdavies.com/javascript/installing-jslint-on-eclipse-ide

简化如下

1、eclipse中,"Help"->"Install New Software"

2、点"Add"后,location填:https://svn.codespot.com/a/eclipselabs.org/mobile-web-development-with-phonegap/tags/jslint4java1/download,点"ok"

3、勾选‘Javascript Development Tools’ and ‘jslint4java’,点next。(我的实际情况是报错,因为Javascript Development Tools已安装,我的解决方法是只勾选jslint4java)

4、确认安装,点ok。(之后,eclipse建议重启,我点yes)

5、在open的项目右键,点Enable jslint4java。Problem里就有各种信息了。(目前不知道怎么取消,只能停用插件。。)

另外,从一JP网站找到另一种安装方式:

http://www.htmlhifive.com/conts/web/view/tools/WebHome

相关推荐