var oHeight = $(document).height(); //屏幕当前的高度
$(window).resize(function(){
if($(document).height() < oHeight){
$(".footer").attr("hidden","hidden");
}else{
$(".footer").removeAttr("hidden");
}
});
2021-10-31 02:25:48
var oHeight = $(document).height(); //屏幕当前的高度
$(window).resize(function(){
if($(document).height() < oHeight){
$(".footer").attr("hidden","hidden");
}else{
$(".footer").removeAttr("hidden");
}
});