代码模块: A数组  aa;  B数组  this.listOfAllData

   aa.forEach(data => {             //遍历A数组

        this.listOfAllData.map(v => {       //遍历B数组

          if (v.sectionId === Number(data)) {        //判断
paraList.push({ //push到新数组中 highwayId: v.highwayId, sectionId: v.sectionId });
} }); });

 

 posted on 2020-11-29 18:19  楼顶铁板烧  阅读(133)  评论(0编辑  收藏  举报