watch:{ number:{ deep:true,//监视多级结构中所有属性的变化 handler(newValue,oldValue){ console.log(newValue,oldValue); } } }