var serInfo = $("#query_formId").serialize();//查询的数据,jquery form表单序列化
//alert(serInfo);
$.ajax({
type: "post",
url: "queryAttendstatisticsBycod.do",
data:serInfo,
dataType:"json",
success: function(data, textStatus){
if(data.access == true) {//表示登录成功
//重新加载数据
loadData(data.list);
//获得后台查询的页数,设置当前查询的页
//$("#curPage_id").attr("value","1");
}else{
new $.msgbox({
title: '提示',
type: 'alert',
content: '<center><br/><br/>查询出错!</center>',
onClose: function(){
location.href = "index.do";
}
}).show();
}
},
error: function(XMLHttpRequest, textStatus, errorThrown){
new $.msgbox({
title: '提示',
type: 'alert',
content: '<center><br/><br/>查询出错!</center>',
onClose: function(){
location.href = "index.do";
}
}).show();
}
});
1