使eclipse支持jquery自动提示

来源:互联网 发布:淘宝怎么查一年前订单 编辑:程序博客网 时间:2024/06/05 16:43

原文链接:http://blog.chinaunix.net/uid-21209537-id-2749026.html

 

1、Eclipse 安装 spket 插件。( 两种方式):

 在线安装:Help->Install New Software...->Add...->Name: "Spket", Location: http://www.spket.com/update/    下载完毕重启 Eclipse 。

 手动安装:到http://www.spket.com/download.html  下载 Plugin 版本,当前版本为1.6.17。下载解压后直接放置于Eclipse 的dropins目录下,重启Eclipse 。

 

2、下载jQuery 文件,(要下载开发版本)。

3、设置spket。

Window -> Preferences -> Spket -> JavaScript Profiles -> New ;输入“jQuery ”点击OK;选择“jQuery ” 并点击“Add Library”然后在下拉条中选取“jQuery ”;选择 “jQuery ”并点击“Add File”,然后选中你下载的jQuery .js 文件;设成Default;

4、设置js打开方式。

Window -> Preferences ->General-> Editors-> File Associations-> 选择*.js 将 Spket JavaScript Editor设为Default。

5、新建一个js文件,jQuery 自动提示!!

原创粉丝点击