鼠标滑动判断与y轴的距离

 $(window).scroll(function(){
                        var y = window.scrollY;//754到达
                        if(y > 754){
                            $("#mynav").css({position:"fixed",top:0});
                        }else{
                            $("#mynav").css({position:"relative"});
                        }

});

上一篇:dubbo-demo的运行


下一篇:一点一点看JDK源码(〇)