Ser*_*ook 11 javascript jsdoc jsdoc3
我有一个字符串数组的数组,我无法弄清楚如何使用JSDoc记录它.
/**
@class
*/
function PostbackList() {
/**
@type {int}
@default
*/
this.TypeID = 0;
/**
@type {PostbackList.Field[]}
*/
this.Fields = new Array();
/**
!! Issue here !!
@type {string[][]}
*/
this.Values = null;
}
Run Code Online (Sandbox Code Playgroud)
这会导致错误.
无效的类型表达式"string [] []":预期"!","?" 或"|" 但是"["找到了.
我不知道是否应该?在类型前面指出它可以为null.
| 归档时间: |
|
| 查看次数: |
3741 次 |
| 最近记录: |