scorelist:[
    {name:"a",id:"111"},
    {name:"b",id:"222"},
    {name:"c",id:"333"}
]
result:["111","222"]






 let b = this.scorelist.filter((item) => {
        if (this.result.indexOf(item.id) > -1) {
          return item;
        }
 });

 console.log(b); // [{name:"a",id:"111"},{name:"b",id:"222"}]

仅供参考!!!

Logo

前往低代码交流专区

更多推荐