var page = 1, Ssize = 0;
function Paging() {
$(window).scroll(function () {
if ($(document).scrollTop() + $(window).height() >= $(document).height()) {
page++;
GetList(page, Ssize)
}
})
}
function GetList(page, size) {
Ssize = size;
var tr = "";
ajaxHelper(‘/GetList/GetProfit?Page=‘ + page + ‘&Size=‘ + size, ‘GET‘, null).done(function (dt) {
var date = eval(dt.data);
$(date).each(function (index, item) {
});
$(‘#profitbody‘).append(tr);
Paging();
});
}
时间: 2024-10-22 03:38:06