我有代码的例子。当我用鼠标滚动窗口时,每当scrollTop === 0运行我的函数this.handle时。如何在this.handleScroll上限制函数this.handle?
https://codesandbox.io/s/n3117pxvp0
发布于 2018-08-20 15:45:38
在构造函数中,我将这个函数与throttle绑定,如下所示:
this.handle = throttle(this.handle, 500);
https://stackoverflow.com/questions/51782268
相似问题