react 生命周期 1. constructor 数据初始化 2. render 渲染dom 挂载阶段 3. componentDidMount () 主要是用来 发送axios 请求 更新阶段 render 渲染 componentDidUpdate 更新 跟新时完成后触发 也可以发送请求 但必须有限制条件 卸载阶段 componentWillUnmount 卸载之前 清除 定时器 常驻内存变量, 以及停止axios 请求