componentDidUpdate (preProps,preState,spanshot). 有三个参数,上一次的props,上一次的state,和快照. 收到新的props或新的state之后做一些事情.
確定! 回上一頁