2013-04-27 183 views

回答

1
$(window).on('scroll',function(){ 
    var windowScroll=$(window).scrollTop(); 
    if(windowScroll==100) window.location.hash='100'; 
    if(windowScroll==200) window.location.hash='200'; 
    if(windowScroll==300) window.location.hash='300'; 
});