特牛网址导航

函数防抖和节流_2秒中请求接口 用什么方法-CSDN博客

网友收藏
文章浏览阅读169次。函数防抖:在事件被触发n秒后再执行回调,如果在这n秒内又被触发,则重新计时。function ajax(content) { console.log('ajax request ' + content)}function debounce(fun, delay) { return function (args) { let that = this ..._2秒中请求接口 用什么方法