今天重新学习jQuery,不过是要用mobile版本,使用eclipse,给自己回顾了下jQuery+JSON的处理过程(主要是$.getJSON、$.parseJSON方法的使用,具体代码省略N个字)。
为了提高开发效率,要实现代码智能提示,通过搜索找到了更好用的插件:aptana(http://www.aptana.com,可以实现JS等强大的智能提示)。有eclipse插件版本,也有独立安装版本(我用的是插件版本)。
安装步骤如下:
- From the Help menu, select Install New Software... to open the Install New Software dialog.
- Paste the URL for the update site into the Work With text box, and hit the Enter (or Return) key.
- In the populated table below, check the box next to the name of the plug-in, and then click the Next button.
- Click the Next button to go to the license page.
- Choose the option to accept the terms of the license agreement, and click the Finish button.
- You may need to restart Eclipse to continue.
安装完重启后,在aptana的插件管理中启用jQuery支持(实际上是通过aptana来下载并安装jQuery插件)。