定义:map()函数定义在JS的array中,它返回一个新的数组,数组中的元素为原生数据用函数处理后的值。
map()不会对空数组进行检测;map()不会改变原始数组

let temp=[];
that.caseTagsList.map(item=>{
	if(that.execParams.tagIdList.indexOf(item.id) < 0){
		temp.push(item);
     }
});
Logo

Vue社区为您提供最前沿的新闻资讯和知识内容

更多推荐