vue 组件之间相互传值 父传子 子传父

1、父传子 把要传入的值放到父标签里  子组件使用props接收 

父写法

子写法

2、子传父

猜你喜欢

转载自www.cnblogs.com/yangqing22/p/10276335.html