1,Eclipse 安装 spket 插件。( 两种方式):html
在线安装:Help->Install New Software...->Add...->Name: "Spket", Location: http://www.spket.com/update/ 下载完毕重启 Eclipse 。spa
手动安装:到http://www.spket.com/download.html 下载 Plugin 版本,当前版本为1.6.17。下载解压后直接放置于Eclipse 的dropins目录下,重启Eclipse 。插件
2,下载jQuery 文件,(要下载开发版本)。htm
3,设置spket。ip
Window -> Preferences -> Spket -> JavaScript Profiles -> New ; 输入“jQuery ”点击OK; 选择“jQuery ” 并点击“Add Library”而后在下拉条中选取“jQuery ”; 选择 “jQuery ”并点击“Add File”,而后选中你下载的jQuery .js 文件;设成Default;ci
4,设置js打开方式。get
Window -> Preferences ->General-> Editors-> File Associations-> 选择*.js 将 Spket JavaScript Editor设为Default。it
5,新建一个js文件,jQuery 自动提示!!io