1

版本 - Aptana Studio 3,内部版本:3.2.2.201208201020

项目是由文件 -> 新建 -> PHP 项目创建的。

这是 index.html 的内容:

<html>
  <head>
    <script>
      function addOption() {
        var option = document.createElement("div");
        document.getElementById("answersList").appendChild(option);
      }
    </script>
  </head>
  <body>
    <button onclick="addOption();">Add option</button>
  </body>
</html>

文档的完成列表中没有 createElement 和 getElementById 方法。

如何获得代码完成?


更新:

似乎代码完成对于纯 JavaScript 文件 (*.js) 效果很好。

4

0 回答 0