amIMissingSomething=[ [1, 2, 3] [4, 5, 6], [7, 8, 9] ] console.log(amIMissingSomething)//[未定义,[7,8,9]]
-
5 因为代码被视为 [1,2,3][6] 如果你看到它写为 变量a=[1,2,3]; var b=a[6]; 这有意义吗? 逗号运算符 – 埃帕斯卡雷洛 评论 2023年9月15日17:00
amIMissingSomething=[ [1, 2, 3] [4, 5, 6], [7, 8, 9] ] console.log(amIMissingSomething)//[未定义,[7,8,9]]
[1,2,3][6]
变量a=[1,2,3]; var b=a[6];