data(){
    form:{
        a:'',
        b:''
    }
}


//添加
this.$set(对象, '属性名',属性值)

//删除
delete this.form.a;//js方法  仅在2.2.0+版本中支持
//Vue.delete(this.form,'a');//vue方法
this.$delete(this.form,'a');

 

Logo

前往低代码交流专区

更多推荐