引用块内容
searchmethod:搜索方法 url:传一个地址 pageid:当前页码listid:下拉参数pagename:网页文件名pageindex:页面索引totalcount:总页数
function GetDataByPage(searchmethod, url, pageid, listid, pagename, pageindex, totalcount) {
laypage({
cont: pageid,
pages: totalcount,
curr: pageindex,
jump: function (e) {
if (pageindex != e.curr) {
$.ajax({
url: url + '&' + pagename + '=' + e.curr,
type: "get",
async: false,
cache: false,
dataType: "json",
error: function (ex) { $('#' + pageid).hide(); $('#' + listid).html(ShowNoDate("温馨提示:暂时没有任何数据")); },
success: function (data) {
if (data != null && data.rc == "0" && data.totalpagecount > 0) {
$('#' + pageid).show();
searchmethod(data);
GetDataByPage(searchmethod, url, pageid, listid, pagename, e.curr, data.totalpagecount);
}
else if (data != null && data.rc == "401") {
LoginLenovo($('#hiddenurl').val());
}
else {
$('#' + pageid).hide();
$('#' + listid).html(ShowNoDate("温馨提示:暂时没有任何数据"));
}
}
});
}
}
});
}