var arr = [1,4,5];
var allArr = [
{'shop_name':'水果店','goods':[{id:1,name:"s"},{id:2,name:"ds"},{id:3,name:"gg"}]},
{'shop_name':'水果店1','goods':[{id:4,name:"s"},{id:5,name:"ds"},{id:6,name:"gg"}]},
]
最终变成
var allArr = [
{'shop_name':'水果店','goods':[{id:2,name:"ds"},{id:3,name:"gg"}]},
{'shop_name':'水果店1','goods':[{id:6,name:"gg"}]},
]
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…