天天看點

Eclipse通過Spket增加JQuery提示的方法

Eclipse通過Spket增加JQuery提示的方法 

1.增加線上更新源:Help->Install New Software...->Add...->Name: "Spket",

Location:http://www.spket.com/update/ 

2.手動安裝:到http://www.spket.com/download.html下載下傳 Plugin 版本,目前版本為1.6.18.下載下傳解壓後直接放置于Eclipse的dropins目錄下,重新開機Eclipse. 

3.下載下傳jQuery檔案,(要下載下傳開發版本). 

4. 設定spket ,Window -> Preferences -> Spket -> JavaScript Profiles -> New,輸入“jQuery”點選OK; 選擇“jQuery” 并點選“Add Library”然後在下拉條中選取“jQuery”; 選擇 “jQuery”并點選“Add File”,然後選中你下載下傳的jQuery.js 檔案;設成Default; 

5.設定js打開方式 (這一步很重要,不設定的話,也不會有jQuery的智能提示), Window -> Preferences ->General-> Editors-> File Associations-> 選擇*.js,将Spket JavaScript Editor設為Default。 

6.建立一個js檔案,jQuery自動提示!!