摘要: React 生命周期方法 分为四个阶段:挂载 、更新、卸载、错误处理。 挂载阶段 当组件实例插入DOM时,其生命周期的调用顺序为: construstor() 构造函数 static getDerivedStateFromProps(props,state) 给派生属性更新属性 render() 渲 阅读全文
posted @ 2020-04-19 23:59 Poki-Q 阅读(267) 评论(0) 推荐(0)