1.如下一个对象,有什么方法清空其属性值editForm: { showDialog: false, id:'', name: '', url: '', param:'', nameSpace:'', },除了这种方法外,有没有其他方式 (遍历?) this.editForm.id = ""; this.editForm.name = ""; this.editForm.url =""; this.editForm.param = ""; this.editForm.nameSpace = ""; this.editForm.routerName=""
添加回答
举报
0/150
提交
取消