Js implements drop-down refresh

  • content
  • comment
  • relevant

Reference code, used by myself, pretty good.

 <script type="text/javascript"> var p = 1; var c = 1; $(window).bind("scroll",function(){ if($(document).scrollTop() + $(window).height() > $(document).height() - 50 && c !=  0)//Near the bottom 100px { $.ajax({ url:"more.html? p="+p, success:function(data) { alert(p); p++; $(".cbp_tmtimeline").append(data); } }); } }); </script> &nbsp;

comment

zero Comments

Post reply

Your email address will not be disclosed. Required items have been used * tagging