jquery实现加载更多

来源:互联网 发布:linux备份文件夹命令 编辑:程序博客网 时间:2024/06/07 14:15
<pre name="code" class="javascript">很简单的代码,下面直接是简单的应用例子:$(window).scroll(function () {        var scrollTop = $(this).scrollTop();        var scrollHeight = $(document).height();        var windowHeight = $(this).height();        if (scrollTop + windowHeight == scrollHeight) {$("ul").append("<li>new li</li>");}})


                                             
0 0
原创粉丝点击