Vue避免赋值双向绑定

有时候,我们不需要数据的双向绑定,我们如果直接用

this.Form.id = id这种形式赋值的话,Form.id永远都改变不了。

解决办法是使用ES6的...语法:

this.Form = {
                ...this.Form,
                id
              }
原文地址:https://www.cnblogs.com/alt-fsh/p/13914824.html