B数组 据 A数组中的数据进行筛选
代码模块: 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
});
}
});
});

![B数组 据 A数组中的数据进行筛选
[编程语言教程]](https://www.zixueka.com/wp-content/uploads/2024/01/1706709718-b594bb21b8a23c5.jpg)

