先使用React.forwardRef;再使用connect 包一层会使ref 属性漏掉,导致内部实例无法传到外部; 比如下面这样: let Component = React.forwardRef((props,ref)=>{ const ...
確定! 回上一頁