为了每次都拿到最新值,通过一个ref 并且将数据都挂载到 ref.current 上面 const [count, setCount] = useState(0); const countRef = useRef(count); const addHandle ...
確定! 回上一頁