3

我是 Aptana 的新手,我刚刚开始了一个自然是 Web 的项目。

我有两个代码完成问题,在网上做了一些研究,但没有找到解决方案。

1)我有这两行代码。

         var script = document.createElement("script");
         script.type = "text/javascript";

我希望在输入“script.”时在第二行中完成代码,并且我有一些建议。但我没有建议脚本的属性,特别是在这个例子中,没有建议属性“类型”。

2)我不能在“文档”对象或“createElement”函数上“转到声明”。

我不知道这些是自动完成功能不受支持还是我遗漏了一些东西,也许是一些配置。

只是为了比较,我在 RubyMine 中都有这两个功能。

提前致谢 !罗多

4

1 回答 1

1

I am going to assume you are writing Javascript inside the HTML editor, because I think if you were editing in the Javascript Source editor you would not be having this problem. Assuming that you are unwilling or unable to separate your Javascript out into .js files, newbie answered a similar (the same?) question here with a patch that I have not tried.

So you have a couple of options (if my assumptions are right):

* Use the Javascript Source editor (by right clicking and choosing Open With > Other)
* Try the patch
于 2013-02-08T17:01:20.247 回答