1 回答
幕布斯7119047
TA贡献1794条经验 获得超8个赞
var arr = [
[{
realname: '',
Rname: '',
displayname: '',
descript: '',
}, {
realname: '',
Rname: '',
displayname: '',
descript: '',
}],
[{
realname1: '1',
Rname1: '',
displayname1: '',
descript1: '',
}, {
realname1: '1',
Rname1: '',
displayname1: '',
descript1: '',
}]
]
var results = []
arr.length && arr[0].forEach(function(item,index){
results.push(Object.assign(item,arr[1][index]))
})
console.log(results)
你这二维数组是啥样的格式?
你用的elementui吧?
转化成一维数组就行了
添加回答
举报
0/150
提交
取消