Javascript Aptana Scriptdoc没有';代码辅助中没有显示
我已经按照所有说明让我的代码注释显示在代码帮助中,但我没有任何运气。目前正在Eclipse内部使用Aptana3插件(这可能是问题吗?) }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
当我有了上面的代码时,该函数会显示在代码帮助中,但没有与之相关的文档。在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];
}
}