useRef 可以保存一切可变的值,例如上面state 中的值,同时还有定时器的timer,requestAnimationFrame 的id 等。例如在递归的操作中,timer 和id 每次 ...
確定! 回上一頁