vue 子组件调用父组件的方法
摘要:
Vue中子组件调用父组件的方法,这里有三种方法提供参考 第一种方法是直接在子组件中通过this.$parent.event来调用父组件的方法 父组件 <template> <div> <child></child> </div> </template> <script> import child f 阅读全文
posted @ 2020-11-05 17:59 前端老表 阅读(252) 评论(0) 推荐(0) 编辑