【发布时间】:2016-06-03 03:07:30
【问题描述】:
我正在尝试记录导出函数的节点模块,但在我的 jsdocs 输出中没有得到对该函数的任何引用。
输出,使用默认模板,看起来像这样:
模块:testModule
标题下没有任何内容。
这是我迄今为止尝试过的:
试试 1
/**
* @module testModule
*/
'use strict';
/**
* @function module:testModule
* @param {String} x Log string
*/
module.exports = function(x) {
console.log(x);
};
试试 2
/**
* @module testModule
*/
'use strict';
/**
* @param {String} x Log string
*/
module.exports = function(x) {
console.log(x);
};
【问题讨论】: