data(){
return{
active:0
}
},
watch:{
active(old,newValue){ // old旧值;newValue新值
if(old!=0){
console.log('1111')
}
}
}
data(){
return{
active:0
}
},
watch:{
active(old,newValue){ // old旧值;newValue新值
if(old!=0){
console.log('1111')
}
}
}