debounce-throttle js 中常见的 debounce-throttle 方法的手工实现 window.onscroll = debounce(console.log('XXXX'), 1000) window.onresize = throttle(console.log('ttt'), 1000)