javascript get the length of the two-dimensional array (number)

获取行数,即每一列的长度: row = array.length;

获取列数,即每一行的长度: col = array[0].length (长度相同)    arr[i].length(长度不同);

 

Guess you like

Origin blog.csdn.net/a1059526327/article/details/108335754
Recommended