【发布时间】:2019-03-26 00:28:33
【问题描述】:
我有这个代码
/** This is test function
* @param {} param1 this is param 1
* @param {} param2 this is param 2
*/
function test(param1, param2) {
}
我正在寻找一种在 代码 中获取此 js 文档描述的方法。 比如
function getMethodJsDocData(){
// The magic happens here and returns some data that contains:
/** This is test function
* @param {} param1 this is param 1
* @param {} param2 this is param 2
*/
}
【问题讨论】:
标签: javascript node.js reflection documentation jsdoc