注意函数退出时候变量会被销毁,而state 中的变量会被保留。 5.2. Effect Hook. useEffect 可以认为是 componentDidMount , componentDidUpdate , ...
確定! 回上一頁