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打開方式。開發
Window -> Preferences ->General-> Editors-> File Associations-> 選擇*.js 將 Spket JavaScript Editor設爲Default。get
5,新建一個js文件,jQuery 自動提示!!it