const {tagList}=this.state
let A = tagList;
let B = selectedRows
for (let n = 0; n < B.length; n++) {
for (let m = 0; m < A.length; m++) {
if (A[m].userid == B[n].userid) {
A.splice(m, 1);
m = m - 1;
}
}
}
方法记录一下,感觉还是可以的