【整理】Aptana开发JQUERY笔记
问题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)
- 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.
- 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.
- In your sample.js file, add the following snippet:
$(document).ready(
function
(){});
- Inside that, add the following line:
$("p")
- While entering that selector you should have seen documentation come up for how to use the
$
function.
- While entering that selector you should have seen documentation come up for how to use the
- 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. - Start coding.
- As you type, notice that Code Assist is now active for the jQuery objects and functions that you use.
- Press ctrl+space at any time to activate Code Assist.
下载一个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
![](https://img-my.csdn.net/uploads/201301/26/1359170801_7741.png)