vue组件通信—父传子如何实时更新数据 如果需要在子组件中利用props获取父组件实时更新的数据并进行对应操作,可以使用watch的监听方法.代码如下: export default { data () { return { child:"", } }, props:["father"], watch:{ "father":{ function (newValue,oldValue) { this.child = newValue; }, deep:true, //确认是否深度监听 } } }