The reason is because the callback passed into setInterval's closure only accesses the time variable in the ... React Hooks 奇技淫巧—— 副作用, 閉包與Timer.
確定! 回上一頁