vue父子组件传值的方式

给子组件传值: this.$refs.child.xx(query);

调用父组件的方法:this.$parent.xx();

posted @ 2021-05-20 11:28  oc-long  阅读(46)  评论(0编辑  收藏  举报