请求传参,过滤掉参数为空的字段

for (let i in this.form) {
            if (this.form.hasOwnProperty(i)) {
              if (!this.form[i]) {
                this.form[i] = undefined;
              }
            }
          }

  

posted @ 2021-04-14 09:15  jiaqiq  阅读(328)  评论(0编辑  收藏  举报