网页滚动加载,以前网页有<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">的时候,一切正常。现在我去掉了这段代码,然后$(document).height()和$(window).height()就始终是相等的,无法滚动加载了。我反复测试,加上就有效,去掉就无效,这是怎么回事? $(window).scroll(function(){
if ($(document).height() - $(window).height() == $(document).scrollTop()) {
$.ajax({
if ($(document).height() - $(window).height() == $(document).scrollTop()) {
$.ajax({
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货