vue2怎么双向绑定一个对象?-灵析社区

超好看鸭

这个对象里的属性个数和key都是未知的

阅读量:18

点赞量:0

问AI
在设置对象属性时使用this.$set()去设置他的值即可 this.$set(this.form,key,value)