$(document).ready(function() {
function productLazy(){
addContent();
}
$(document).ready(function() {
$(window).scroll(function () {
var scrollTop = $(this).scrollTop(); //滚动条距离顶部窗口的距离
var scrollHeight = $(document).height(); // 窗口总高度 固定值
var windowHeight = $(this).height(); //滚动条的高度
if (scrollTop + windowHeight >= scrollHeight-588) {
//此处是滚动条到底部时候触发的事件,在这里写要加载的数据,或者是拉动滚动条的操作
if (arguments.callee.timer) clearTimeout(arguments.callee.timer);
arguments.callee.timer = setTimeout('productLazy()', throldHold);
}
});
});
原地址不清楚..........