對於這樣的功能...本地變量的正確JSDoc語法是什麼?
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.我的一些用例需要多行註釋。