62,041
社区成员
发帖
与我相关
我的任务
分享
//无刷新分页
function getpagelist(filter,order,pagesize,pageNotin)
{
var cid=$("#HiddenCid").val();
//alert(cid+"-"+filter+order+pagesize+"-"+pageNotin);
$.ajax({
type:"POST",
url:"../Handler/GetProduct.ashx",
dataType:"html",
data:"Cid="+cid+"&filter="+filter+"&order="+order+"&pagesize="+pagesize+"&pageNotin="+pageNotin,
beforeSend:function(XMLHttpRequest)
{
$(".loading").show();
},
success:function(msg)//msg 是分页列表
{
$("#CProductList").html("");//清空之前的
var msglist=msg.split('$');
$("#CProductList").html("<ul>"+msglist[0]+"</ul>")//填写分页列表代码大片页面
$("#spanAllPageCount").text(msglist[1]);
},
complete:function(XMLHttpRequest,textStatus)
{
//隐藏正在查询图片
// $("#imgLoad").hide();
$(".loading").hide();
},
error:function()
{
//错误处理
alert("提交失败网络中断。");
}
});
}