用法 例子: ... componentDidMount() 會在元件被掛載到DOM 後被執行- 也就是說元件已經 ... 更新state 狀態的操作都適合放在componentDidMount() 做。
確定! 回上一頁