基于表格的多条件查询,向后台发送username,education,cid,createtime等数据,可为空。经过查询后返回JSON,使用
$("#userContractTable").bootstrapTable('load', json);
命令刷新表格,将新查询的数据显示出来
$.ajax({
type: "post",
url: "getUserContractList",
data: {username : username,
education:education,
cid:cid,
createTime : createTime},
dataType:"json",
success : function(json) {
$("#userContractTable").bootstrapTable('load', json);
}
});
}