wnmp(windows+nginx+mysql+php)环境搭建跟配置
\/g,""); }); } $("#cnblogs_post_body").html(function(){ return $(this).html().replace(/\
\/g,""); }); prettyPrint(); setTimeout(comment_remove,1000); setTimeout(comment_remove,2000); setTimeout(prettyPrint,1000); setTimeout(prettyPrint,2000); //置顶按钮显示/隐藏实现 $(window).scroll(function(){ var w_height = $(window).height();//浏览器高度 var height=$(document).height(); var scroll_top = $(document).scrollTop();//滚动条到顶部的垂直高度 $("#goto-top").css("top",40+"px"); if(scroll_top > w_height){ $("#goto-top").fadeIn(500); }else{ $("#goto-top").fadeOut(500); } }); //置顶 $("#goto-top").click(function(e){ e.preventDefault(); $(document.documentElement).animate({ scrollTop: 0 },200); //支持chrome $(document.body).animate({ scrollTop: 0 },200); }); });