摘要:
function animate(){ var top = $(document).scrollTop(); var end = 0; var dur = 500; var t = 0; var ts = setInterval(function(){ if(t>=dur) clearTimeout(ts); tt = Math.ceil(speed(t,top,-(top),dur)); $(document).scrollTop(tt); t+=50; },50); function spee... 阅读全文