当前位置: 代码迷 >> JavaScript >> Eclipse装配JSLint插件的几种方法
  详细解决方案

Eclipse装配JSLint插件的几种方法

热度:116   发布时间:2012-12-21 12:03:49.0
Eclipse安装JSLint插件的几种方法
  笔者在安装JSLint的时候参考了网上的几种方法,现整理如下:
  方法一:
?
Step One: Open Eclipse up on your machine and go to ‘Help’ -> ‘Install New Software’
Step Two: Click ‘add’ and to stuff the location with the following link:
?
https://svn.codespot.com/a/eclipselabs.org/mobile-web-development-with-phonegap/tags/jslint4java1/download then click ‘ok’.
Step Three: Selecting ‘Javascript Development Tools’ and ‘jslint4java’ and click next.
  方法二:
?
Step One: Download jslint4java
Step Two: Put jslint4java.jar somewhere
Step Three: Add an external tool configuration in Eclipse:
                   Location: /usr/bin/java(or your path to javaw.exe)
                   Arguments: -jar /path/to/jslint4java.jar ${resource_loc}
  方法三:
?
1. Help -> Install new software
2. Click the 'Add' button
    Name : Rockstar Apps (or whatever you want)
    Location : http://update.rockstarapps.com/site.xml
3. expend the selection and check Rockstar JsLint
4. Click 'Next'...again
5. Accept and install
    (you'll have to hit okay when it prompts you about installing unsigned content).
6. Restart Eclipse...
资料参考

  1、http://www.ibm.com/developerworks/cn/web/1105_linlin_jslint/
  2、http://stackoverflow.com/questions/2741058/jslint-eclipse-plugin
  3、http://www.andyjamesdavies.com/javascript/installing-jslint-on-eclipse-ide
  相关解决方案