摘要: React 组件在 __ 加载时将 DOM 元素传入 ref 的回调函数,在卸载时则会传入 null __。ref 回调会在componentDidMount 或 componentDidUpdate 这些生命周期回调之前执行。 当 ref 属性用于使用 __ class 声明的自定义组件 __时, 阅读全文
posted @ 2017-12-28 00:15 joe_ice 阅读(173) 评论(0) 推荐(0)