typeScript 定义二维数组
程序员文章站
2022-07-03 16:59:36
...
2dArray = Array<Array<any>> = new Array<Array<any>>();
比如angular初始化的时候给 2dArray初始化一下
for ( let i = 0; i < num; i++ ) {
this.2dArray[i] = [];
}
this.2dArray.push([]);
上一篇: 配置阿里yum源和epel源