函数防抖:高频去触发函数时,只执行一次
function antiShake(func, delay){
var timer = null;
return function(...argus){
var _this = this
clearTimeout(timer);
timer = setTimeout(function(){
func.apply(_this, argus);
}, delay);
}
}