摘要: 实例化 首次实例化 getDefaultProps //创建默认 props getInitialState //创建 默认的State componentWillMount //在装配发生前被立刻调用。其在render()之前被调用,因此在这方法里同步地设置状态将不会触发重渲。避免在该方法中引入任 阅读全文
posted @ 2018-02-28 14:36 qq281113270 阅读(225) 评论(1) 推荐(1) 编辑