在eclipse让jQuery自动提示

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 自动提示!!

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章