【整理】Aptana开发JQUERY笔记

来源:互联网 发布:战舰帝国所有橙船数据 编辑:程序博客网 时间:2024/05/08 10:07

【整理】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 如何安装

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

http://download.aptana.com/tools/studio/plugin/install/studio 


http://download.aptana.com/tools/studio/plugin/install/studio 


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

原创粉丝点击