父子组件通信

1.props 父组件向子组件传递值
this.$emit('',data) 子传父组件

props:['t1']

{{t1}}

2.this.$children.fucntion
this.$parent.props

posted @ 2020-11-04 19:08  PGD  阅读(60)  评论(0)    收藏  举报