vue子传值给父-子为新路由

主要用在返回时的场景,返回时需要数据更新

this.$emit('fun',x);子

父:

v-on:fun="fun2"

如此

 

posted @ 2017-06-05 16:32  HHLweb  阅读(2028)  评论(0编辑  收藏  举报