遍历对象清空值

form1: {
section: “”,
itemname: “”,
itemvalue: “”,
},
for (let [k, v] of Object.entries(this.form1)) {
this.form1[k] = “”;
}

你可能感兴趣的:(js,js)