利用useMemo的依赖传空数组,Example组件只会在首次渲染时,调用debounce生成debounceSetCount,且debounceSetCount被缓存住,之后不管state怎么改变 ...
確定! 回上一頁