vue父组件更新,子组件也更新的方法

1、父组件 使用 Math.ramdom()

 

 

 2、子组件获取

 

 然后监听这个ramdom变化,处理子组件的更新

 

转载于:https://www.cnblogs.com/ajaxlu/p/11433629.html