摘要: 防抖: 在事件被触发 n 秒后再执行回调,如果在这 n 秒内又被触发,则重新计时。 //模拟一段ajax请求 function ajax(content) { console.log('ajax request ' + content) } let inputa = document.getElem 阅读全文
posted @ 2022-01-27 22:41 Ryan_zheng 阅读(44) 评论(0) 推荐(0) 编辑