子组件触发父组件的方法

父组件: 

子组件:  注意:有时候必须得要v-on 视情况而定 close即子组件需要触发的东西,不可更改

猜你喜欢

转载自www.cnblogs.com/yn-cn/p/9456779.html