我认为所有在JSDoc中记录的成员/对象等都应该是可点击的链接;例如,如果我有
以下是我的代码:
"namespace"对象很容易点击,并且可以从主页访问,但是
PS:在任何人用伤人的言语批评我的代码之前,请注意我关于JSDoc的存在是在大约3个小时前得知的,我非常新手。
levelOne --> levelTwo --> levelThree --> levelFour
,那么我应该在第一页看到levelOne,并能够通过点击逐级跳转到levelFour...但事实并非如此。以下是我的代码:
/**
Contains various tools and extensions.
@namespace App
*/
var app = app || {};
/**
Contains App plugins.
@namespace App.Plugins
*/
app.Plugins = app.Plugins || {};
/**
Contains methods and classes usable within unit-testing.
@memberof App
@type {object}
@namespace App.UnitTesting
*/
app.UnitTesting = app.UnitTesting || {
/**
Test methods for the App library.
@memberof App.UnitTesting
@type {object}
@property {object} test1 Property definition.
*/
PluginTests: {
/**
Test for this or that
@memberof App.UnitTesting.PluginTests
@type {object}
@property {method} innertest1 Property definition for "innertest1"
*/
test1: {
/**
Run another nested test
@memberof App.UnitTesting.PluginTests.test1
@method innertest1
@returns {object}
*/
innertest1: function () { }
}
}
};
"namespace"对象很容易点击,并且可以从主页访问,但是
PluginTests
不可点击(它不是一个链接!!),因此test1
和innertest1
无法访问。我是否完全误解了JSDoc的工作原理?
PS:在任何人用伤人的言语批评我的代码之前,请注意我关于JSDoc的存在是在大约3个小时前得知的,我非常新手。