for (var i = 0 i < 3 i++) {
arr[i] = []
for (var j = 0 j < i+1 j++) {
arr[i][j] = []
for (var z = 0 z < 3 z++) {
var v = ''
if(z==0){
k = 'A'
v='abc'
}else if(z==1){
k = 'B'
v='2017'
}else if(z==2){
k = 'C'
v='aa'
}
arr[i][j][k] = v
}
}
}
console.log(arr) 望采纳,不懂请追问
var arr = []for (var i = 0 i < 3 i++) {
arr[i] = []
for (var j = 0 j < i+1 j++) {
arr[i][j] = []
for (var z = 0 z < 3 z++) {
var v = ''
if(z==0){
k = 'A'
v='abc'
}else if(z==1){
k = 'B'
v='2017'
}else if(z==2){
k = 'C'
v='aa'
}
arr[i][j][k] = v
}
}
}
console.log(arr)
望采纳,不懂请追问