$(document).scroll(function(){
var scrollTop = $(document).scrollTop(),bodyHeight = $(window).height();
if(scrollTop > bodyHeight){
$(".toTop").show();
}else{
$(".toTop").hide();
}
});
转载于:https://www.cnblogs.com/m-blue/p/6020301.html
$(document).scroll(function(){
var scrollTop = $(document).scrollTop(),bodyHeight = $(window).height();
if(scrollTop > bodyHeight){
$(".toTop").show();
}else{
$(".toTop").hide();
}
});
转载于:https://www.cnblogs.com/m-blue/p/6020301.html