对我来说,听起来像是您想在滚动条即将结束时检测滚动条的位置。
在jquery组上四处搜寻时发现了这一点。提出的解决方案,如有需要,可添加一些文档:
$.fn.isNearTheEnd = function() { // remember inside of $.fn.whatever = function() {} // this is the jQuery object the function is called on. // this[0] is DOMElement return this[0].scrollTop + this.height() >= this[0].scrollHeight;};// an example.$("#content").bind("scroll", function() { if ($(this).isNearTheEnd()) // load some content});


