需求:在编辑完成后,把from{} 内的所有元素赋空值
第一种
//简单粗暴this.from = {}
第二种
//for循环方式(代码不太优雅)for(const 香港vps key in this.from){if(this.from.hasOwnProperty(key)){this.from[key] = ”}}
需求:在编辑完成后,把from{} 内的所有元素赋空值
第一种
//简单粗暴this.from = {}
第二种
//for循环方式(代码不太优雅)for(const 香港vps key in this.from){if(this.from.hasOwnProperty(key)){this.from[key] = ”}}