这是代码:
$('.next').click(function(){
$(window).stop(true,true).scrollTo('+=800px', 1000, { axis:'x' } );
});
$('.prev').click(function(){
$(window).stop(true,true).scrollTo('-=800px', 1000, { axis:'x' } );
});
网站可以在这里预览:http ://www.allisonnavon.com/index.php?/projects/raw-rhythm/
当多次单击 » 时,它会将它们排入队列,即使使用stop(true,true)
参数也是如此。有谁知道为什么?