throttle(fn, delay) { let t = true return function () { if (t) { setTimeout(() => { fn.call(this) t = true }, delay) } t = false; } }