忆江南-春风

象蜗牛一样生活
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

MyEclipse下Jquery代码自动提示

Posted on 2012-01-16 15:36  忆江南-春风  阅读(2633)  评论(0编辑  收藏  举报

1、eclipse中安装spket插件:Help->Software Updates...->Add Sites...输入网址http://www.spket.com/update/

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。