js 遍历对象中的所有元素,并将元素设置为空 //this.baseInfo 为对象 Object.keys(this.baseInfo).forEach((key)=>{ this.baseInfo[key]='' })