【整理】Aptana开发JQUERY笔记

【整理】Aptana开发JQUERY笔记

相对于Visual Studio来讲不是很好,毕竟VisualStudio是原生支持的。Aptana是需要打造的。

问题1)Aptana3.0不直接支持JQUERY.

官方的说法:

There are no JavaScript Framework Plugins for Aptana Studio 3 at this time. The JS Framework plugins are for Aptana Studio 2 only ! ;)

地址

https://aptanastudio.tenderapp.com/discussions/problems/1852-aptana-3cant-install-jquery-plugin

翻译一下:就是只在Aptana Studio2.0支持。
参看帮助,他说

Aptana 3 不能装 2 的 JQ 插件了

要从菜单找开启点:

Commands - Bundle Developments - Install Bundle ,然后选择 JQuery 装上可以装上,结果我出现了。如下

This Terminal Emulator is not functional because no 'bash' shell could be found. Please correct the problem and restart the IDE.

查询它的维基帮助:

https://wiki.appcelerator.org/display/tis/Home

Viewing code assist (using jQuery as an example)

  1. Add the file from: https://raw.github.com/aptana/javascript-jquery.ruble/master/support/jquery.1.4.2.sdocml. Make sure to save it with the .sdocml extension.
  2. If you do not have a JavaScript file in your project, create a new one by selecting File menu, select New > File... and typing 'sample.js' or a different name if you prefer. Select Finish.
  3. In your sample.js file, add the following snippet: 
    $(document).ready( function (){});
  4. Inside that, add the following line: $("p")
    1. While entering that selector you should have seen documentation come up for how to use the $ function.
  5. Now insert your cursor just after "$("p")" and type .ad and press ctrl+space.
    Code Assist displays a list of jQuery functions that begin with the letters "ad" (e.g. add, addClass, etc). Use Code Assist to help you code.
  6. Start coding.
    1. As you type, notice that Code Assist is now active for the jQuery objects and functions that you use.
    2. Press ctrl+space at any time to activate Code Assist.
https://raw.github.com/aptana/javascript-jquery.ruble/master/support/jquery.1.4.2.sdocml

下载一个jquery.1.4.2.sdocml的文件不要修改扩展名啊,直接放到 Apatan Studio的工程目录即可。

总结来说,只需要下载:
https://raw.github.com/aptana/javascript-jquery.ruble/master/support/jquery.1.4.2.sdocml
这个文件,确保是“.sdocml”为后缀,并将之放到你的项目下(任何目录都行)即可。就这么简单。(当然,JQuery的库文件是必须的)
 

插件的话javascript-jquery.ruble 放到项目根目录就可以了

首 先下载:https://raw.github.com/aptana/javascript-jquery.ruble/master/support /jquery.1.4.2.sdocml 一定 要保证是.sdocml文件不是文本文档,此链接打开后可能是一个文本网页,将网页中的内容复制保存为jquery.1.4.2.sdocml文件。

再下载:http://code.jquery.com/jquery-1.4.1-vsdoc.js

然后把这2个文件放到项目的根目录下(其实任意目录都可以),然后重启aptana就可以了。具体可查看 https://wiki.appcelerator.org/display/tis/Using+JavaScript+Libraries


2问题2 如何安装

你可以下载单机版或者插件版。

这个是2.0.5的插件。网上提供两个版本,两种方式。
请仔细阅读。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值