如果我們不想讓dataA的值跟著聯(lián)動變化,可以先把dataA轉(zhuǎn)換成字符串叮盘,然后在轉(zhuǎn)換成對象
this.optionB = JSON.parse(JSON.stringify(this.optionA));
如果我們不想讓dataA的值跟著聯(lián)動變化,可以先把dataA轉(zhuǎn)換成字符串叮盘,然后在轉(zhuǎn)換成對象
this.optionB = JSON.parse(JSON.stringify(this.optionA));