去除对象中的空值
作者:互联网
let objParams = Object.assign({}, this.searchParams);
Object.keys(objParams).filter((n) => {
if (objParams[n] === '') {
delete objParams[n];
}
return true;
});
this.activityData = await GetActivityInfoById(objParams);
标签:filter,searchParams,await,return,对象,Object,空值,去除,objParams 来源: https://www.cnblogs.com/wayhome123/p/15629939.html