首页 > TAG信息列表 > componentDidUpdate

React 生命周期

React 生命周期 常用的分为三个阶段:挂载阶段、更新阶段、渲染阶段 挂载阶段(按顺序执行一次) constructor render (渲染UI) componentDidMount (发送请求) 更新阶段(只要组件更新就会执行) render componentDidUpdate 卸载阶段(组件被销毁时执行一次) componentWillUnmount(清除