mounted
getDefaultProps // 共用属性,每次实例创建都会被调用一次
getInitialState // 当前元素,用于当前组件,调用的次数有且只有一次
componentWillMount // DOM节点渲染之前被调用,最后一次修改 state 的机会
render // 创建虚拟的DOM节点
componentDidMount // DOM节点渲染之后被调用
update
componentWillReceviceProps // 更改 props 对象时被调用
shouldComponentUpdate // 通过返回bloon值来判断是否需要更新DOM结构中的 props 和 state 对象
componentWillUpdate // 接收到新的 props 和 state 进行渲染之前调用
componentDidUpdate // 接收到新的 props 和 state 渲染之后调用
unMounted
<span style="font-size: 13px;">componentWillUnMount // 销毁图片资源</span>