文件1.php应该输出以下内容:
<div id="content"></div><script type="text/javascript"> $(document).ready(function() { // when we scroll, check the position: $(window).scroll(function() { // if at bottom, add new content: if ($(window).scrollTop() == $(document).height() - $(window).height()) { $.get("2.php",function(data) { $("#content").append(data); },'html'); } }); });</script>如果要将迭代号发送到2.php,则可以在一些隐藏的输入中记住它,并将其作为参数发送到$ .get()。
希望能帮助到你。



