关于多层循环顺序问题

当遇到多层循环,结构顺序颠倒,这时候可以不用在意顺序,只是说赋值的时候,后面的数先有,但是不会漏掉前面的数字。

lostSave.forEach((outlostItem,_v1)=>{
  outlostItem.forEach((intlostItem,_v2)=>{
    intlostItem.forEach((thrlostItem,_v3)=>{
      saveDrawList[_v2].list[_v1].ballList[_v3].lost=thrlostItem;
    })
  })
})

猜你喜欢

转载自www.cnblogs.com/cainiao-vcu/p/9159474.html