2019年3月14日

react 获取 ref

摘要: class Child extends React.Component{ constructor(props){ super(props); this.myRef=React.createRef(); } componentDidMount(){ console.log(this.myRef.cur 阅读全文

posted @ 2019-03-14 17:42 冰love 阅读(952) 评论(0) 推荐(0) 编辑

导航