定义:map()函数定义在JS的array中,它返回一个新的数组,数组中的元素为原生数据用函数处理后的值。 map()不会对空数组进行检测;map()不会改变原始数组
let temp=[]; that.caseTagsList.map(item=>{ if(that.execParams.tagIdList.indexOf(item.id) < 0){ temp.push(item); } });