我如何获得这个多重暗数组中“列”的数量?
我可以用x.length获得的“行数”(返回3)
x [0] .length是不确定的,但应该返回4。这可能很简单,但我不知道。
(3) [{…}, {…}, {…}]
0: {0: "1", 1: "2", 2: "3", 3: "4
"}
1: {0: "5", 1: "6", 2: "7", 3: "8
"}
2: {0: "9", 1: "10", 2: "11", 3: "12
"}
length: 3
__proto__: Array(0)
You should get the
length
of the keys of the first object