vue基础边学边用
程序员文章站
2022-06-11 22:09:13
...
1循环赋值新数组完成过滤
Api_UserList.getList(this.searchForm.name,this.searchForm.phone, "", "", that.skipCount, that.pageSize)
.then((res) => {
that.total = res.totalCount;
var newList = [];
console.log("items",res.items)
res.items.forEach((item)=>{
if(item.name!="admin"){
console.log("item",item);
newList.push(item);
}
});
that.data=newList;
}).catch((err) => {
});
下一篇: pytorch:tensor维度变化