摘要:
function debounce(fn, delay) { // 持久化一个定时器 timer let timer = null; // 闭包函数可以访问 timer return function() { // 通过 'this' 和 'arguments' // 获得函数的作用域和参数 let context = this; let ... 阅读全文
posted @ 2017-03-13 23:40
N1900
阅读(1546)
评论(0)
推荐(0)

浙公网安备 33010602011771号