==> mounting(一次)
- constructor----------------(初始化數據使用)
- componentWillMount ------ 掛載之前(做動畫)
- render ------------------第一次渲染(第一次渲染時要處理的邏輯)
- componentDidMount ------掛載之后(請求數據,拿到真實的dom)
==> updating
-?shouldComponentUpdate----- 性能優化,如果寫了就必須返回一個布爾值,默認為true,當為false的時候updation階段停止
-?componentWillUpdate -------- 數據更新之前
- componentWillReceiveProps ----- 父組件數據發生改變的時候觸發
-?componentDidUpdate ---------- 數據更新之后
==> unmounting
-?componentWillUnmount -------- 組件銷毀時調用