<子组件 ref='xxx'></子组件> 父组件: this.refs.xxx.子组件定义的方法() 外部: vm.$refs.xxx.子组件定义的方法() 注意:子组件添加 ref 属性,父组件才可以通过 refs 获取. 转载自: https://my.oschina.net/zhupengdaniu/blog/3049907
上一篇 Make /deep/ behave like the descendant combinator " " in CSS live profile (in css file or inside of <style>) CSS 下一篇 html中设置锚点定位的几种常见方法