watch: {
//普通属性的监听
options(val) {
this.singleOptions = val
},
//对象的监听
itemList: {
deep: true,
handler: function() {
this.multipleItemList = this.itemList
}
}
对象要深复制,默认是浅复制