摘要: ref的作用在于父组件取到子组件的所有state内容。 在父组件中 编写如下: 1. public child: any; 类中定义child,用于存放子组件的作用域 2. 绑定子组件作用域 public onRef(ref: any) { this.child = ref } 3. 子组件中绑定r 阅读全文
posted @ 2019-05-24 10:40 Denvue 阅读(5290) 评论(0) 推荐(0) 编辑