例如
let arr = [
{id:0,title:'T1'},
{id:1,title:'T2'},
{id:2,title:'T3'},
{id:3,title:'T4'},
{id:4,title:'T5'}
...
]
let img = [
{id:0,pic:'/01.png'},
{id:1,pic:'/02.png'},
{id:2,pic:'/03.png'}
...
]
将 img数组的图片往arr数组对象中循环插入,类似于这样
let arr = [
{id:0,title:'T1',img:'/01.png'},
{id:1,title:'T2',img:'/02.png'},
{id:2,title:'T3',img:'/03.png'},
{id:3,title:'T4',img:'/01.png'},
{id:4,title:'T5',img:'/02.png'}
...
]
怎么操作??
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…