對於這樣的功能... function example() {
var X = 100;
...
var Y = 'abc';
...
return Z;
}
我需要解釋的一些局部變量的目的。添加像這樣的描述... function example() {
/**
* @description - Need to
這是我第一次使用jsdocs3,我無法生成我的文檔。 我創建了一個文件app.js並插入以下意見: - /**
* Main file - All modules are loaded.
* @author My Name
*
*/
然後我跑的命令./node_modules/jsdoc/jsdoc.js ./app/app.js -r -d文檔/,結果如下圖所示: - 我自己也嘗試了
我想在我的ES6項目中使用JSDoc,我返回地圖: /**
* Some documentation..
*
* @returns {undefined} <- This should be replaced
*/
function returningMap() {
const someMap = new Map();
someMap.set("key", {a, b