useCallback 和useMemo是其中的两个hooks,本文旨在通过解决一个需求,结合高阶函数, ... function debounce(func, delay = 1000) { let timer; ...
確定! 回上一頁