watch: { data(val, newval) { console.log(val) console.log(newval) } }
watch: { docData: { handler(newVal) { this.change_number++ }, deep: true } }
watch:{ 'innerInfo.phone':{ handler(val){ } } },
watch: { data: 'changeData' // 值可以为methods的方法名 }, methods: { changeData(curVal,oldVal){ conosle.log(curVal,oldVal) } }