組件將要掛載時觸發的函數:componentWillMount 組件掛載完成時觸發的函數:componentDidMount 是否要更新數據時觸發的函數:shouldComponentUpdate 將要更新數據時觸發的函數:componentWillUpdate 數據更新完成時觸發的函數:componentDidUpdate 組件將要銷燬時觸發的函數:componentWillUnmountweb