通过 useEffect 的 Hook ,可以告诉 React 需要在渲染后执行某些操作;而 ... useState(0) const [timer, addTimer] = useState(1000) useEffect(() ...
確定! 回上一頁