摘要: // 节流 规定一个单位时间,在这个单位时间内,只能有一次触发事件的回调函数执行,如果在同一个单位时间内某事件被触发多次,只有一次能生效。 jieliu() { // 定时器 //1. 当 timeOut = null 说明我们这时候没有事情出发,是等待状态 let timeOut = this.t 阅读全文
posted @ 2020-09-25 11:32 queenDream 阅读(171) 评论(0) 推荐(0) 编辑