function throttle{fn,time){
clearInterval(fn.timeId);
fn.timeId = setTimeout(function(){fn()},time);
}
转载于:https://my.oschina.net/u/1792175/blog/598084
来源:https://blog.csdn.net/chuomu8273/article/details/100681957