对象删除为空的值

2022-02-10  本文已影响0人  zZ_d205
 Object.keys(this.listQuery).forEach(key => {
        if (this.listQuery[key] === '') {
          delete this.listQuery[key]
        }
      })
上一篇下一篇

猜你喜欢

热点阅读