componentWillMount -> render -> componentDidMount
shouldComponentUpdated(必须有一个返回值,返回值是布尔值,返回false可以取消组件更新) -> componentWillUpdated(此时DOM已经更新,可以在此处获取DOM元素) -> render -> componentDidUpdated
-> componentUnmount(组件卸载,可以在这里清除一些事件)
componentWillReceiveProps在接收到新的props时调用