摘要: 1. 通过回调函数 <SomeComponent ref={thisComp => this.yourCompRef = thisComp} /> 2. 通过createRef函数 const currentRef = React.createRef(); <SomeComponent ref={c 阅读全文
posted @ 2020-11-29 13:09 樊顺 阅读(223) 评论(0) 推荐(0) 编辑