标签:
var stop=true; $(window).scroll(function(){ totalheight = parseFloat($(window).height()) + parseFloat($(window).scrollTop()); if($(document).height() <= totalheight){ if(stop==true){ stop=false; $.post("http://www.lovexm.com/test.php", {start:1, n:50},function(txt){ $("#pro-list-li").after(txt); stop=true; },"text"); } } });
标签:
原文地址:http://www.cnblogs.com/ilovexiaoming/p/4949550.html