大数组对应ids操作

    const valueList=List.filter((item)=> ids.includes(item.id))
    if (valueList.every(obj => obj.state == 0)){
      
    }else{
       message.error('不行')
    }

 

posted @ 2020-08-15 10:51  lipu1993  阅读(151)  评论(0)    收藏  举报