function usePrevious(value) { const ref = useRef(); useEffect(() => { ref.current = value; }); return ref.current; } 複製程式碼.
確定! 回上一頁