首页
it技术
登录
6mi
u
盘
搜
搜 索
it技术
将两个数组合并成一个数组,对应项相同
将两个数组合并成一个数组,对应项相同
it
2024-05-09
55
let one = []; let two = []; let AllMes = []; this.pileInformation.forEach( (item, index) => { if(index%2){ two.push(item) } else { one.push(item) } }) one.forEach( (item, index) => { AllMes.push([item,two[index]]) }) this.$set(this,'AllDate',AllMes)
转载请注明原文地址: https://lol.8miu.com/read-16224.html
最新回复
(
0
)