随笔记录 js接口入参,判断校验字段不为空 Object.keys(this.modalParams).forEach(key=>{ if(!this.modalParams[key]) this.modalParams[key] = null })