在vue.js中,watch深度监听对象的时候,在页面初始化之后添加到对象中的属性值无法监听,此类属性须在初始化对象的时候给其初始值,方可监听到。 data{ return { user:{id:'',name:''} } }