对于这样的函数......
function example() {
var X = 100;
...
var Y = 'abc';
...
return Z;
}
我需要解释一些本地变量的目的。添加这样的描述...
function example() {
/**
* @description - Need to explain the purpose of X here.
*/
var X = 100;
...
/**
* @description - Need to explain the purpose of Y here.
*/
var Y = 'abc';
...
return Z;
}
...看起来并没有被JS Doc v3.4.0
捕获到。
正确的语法是什么?
P.S.我的一些用例需要多行注释。