Object.keys(this.formList[this.currentIndex]).forEach((key) => {
this.formList[this.currentIndex][key] = '';
})
清空对象每一项的值(Object.keys)
最新推荐文章于 2024-11-05 15:26:40 发布
Object.keys(this.formList[this.currentIndex]).forEach((key) => {
this.formList[this.currentIndex][key] = '';
})