创建时 constructor()static getDerivedStateFromProps()render()componentDidMount() 更新时 static getDerivedStateFromProps()shouldComponentUpdate()render()getSnapshotBeforeUpdate()componentDidUpdate() 卸载时 componentWillUnmount()