1.调用子组件的时候 定义一个ref

vue 父组件使用子组件中的data或methods

2.在父组件里面通过

this.$refs.verify.属性
this.$refs.verify.方法

vue 父组件使用子组件中的data或methods


 
                    
            
                

相关文章: