如何使用jsdoc记录这样的模块?我尝试了很多版本,但无法让它工作.Funciton测试未出现在文档中.
/**
* Description of module, defines module for whole file
*
* @module constructors
* @exports app
*/
var app = (function() {
/**
* Description of function test
*/
function test() {
return '';
}
return {
test: test
}
}());
Run Code Online (Sandbox Code Playgroud)
从版本3.2.2开始,jsdoc很容易被模块触发,解决方案是使用module:模块名称来指定您要记录的实体所在的位置:
/**
* Description of module, defines module for whole file
*
* @module constructors
*/
var app = (/** @lends module:constructors */ function() {
/**
* Description of function test
*/
function test() {
return '';
}
return {
test: test
}
}());
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1443 次 |
| 最近记录: |