赞
踩
function myFilter(arr1, arr2) { return arr1.filter((ele) => arr2.filter((x) => x.id === ele).length > 0); }