Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/464.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript Aptana Scriptdoc没有';代码辅助中没有显示_Javascript_Eclipse_Aptana - Fatal编程技术网

Javascript Aptana Scriptdoc没有';代码辅助中没有显示

Javascript Aptana Scriptdoc没有';代码辅助中没有显示,javascript,eclipse,aptana,Javascript,Eclipse,Aptana,我已经按照所有说明让我的代码注释显示在代码帮助中,但我没有任何运气。目前正在Eclipse内部使用Aptana3插件(这可能是问题吗?) } 当我有了上面的代码时,该函数会显示在代码帮助中,但没有与之相关的文档。在Aptana支持论坛上发现,他们的Scriptdoc设置不支持未声明的变量 如果我将上述代码更改为: var myObj = { /** * Gets the current foo * @param {String} fooId The unique id

我已经按照所有说明让我的代码注释显示在代码帮助中,但我没有任何运气。目前正在Eclipse内部使用Aptana3插件(这可能是问题吗?)

}


当我有了上面的代码时,该函数会显示在代码帮助中,但没有与之相关的文档。

在Aptana支持论坛上发现,他们的Scriptdoc设置不支持未声明的变量

如果我将上述代码更改为:

var myObj = {
    /** 
    * Gets the current foo 
    * @param {String} fooId The unique identifier for the foo.
    * @return {Object} Returns the current foo.
    */
    getFoo: function (fooID) {
        return bar[fooID];
    }
}
然后一切正常

var myObj = {
    /** 
    * Gets the current foo 
    * @param {String} fooId The unique identifier for the foo.
    * @return {Object} Returns the current foo.
    */
    getFoo: function (fooID) {
        return bar[fooID];
    }
}