对象删除为空的值
2022-02-10 本文已影响0人
zZ_d205
Object.keys(this.listQuery).forEach(key => {
if (this.listQuery[key] === '') {
delete this.listQuery[key]
}
})
Object.keys(this.listQuery).forEach(key => {
if (this.listQuery[key] === '') {
delete this.listQuery[key]
}
})