有時候,我們不需要數據的雙向綁定,我們如果直接用
this.Form.id = id這種形式賦值的話,Form.id永遠都改變不了。
解決辦法是使用ES6的...語法:
this.Form = {
...this.Form,
id
}
