代码模块: 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 }); } }); });