谁能给我一个简单的解释,关于节流和debounging函数之间的区别,以限制速率的目的。
在我看来,两者的作用是一样的。我查看了这两个博客来找出答案:
http://remysharp.com/2010/07/21/throttling-function-calls < a href = " http://remysharp.com/2010/07/21/throttling-function-calls " > < / >
http://benalman.com/projects/jquery-throttle-debounce-plugin/ < a href = " http://benalman.com/projects/jquery-throttle-debounce-plugin/ " > < / >