获取到jqgrid发送的请求得到的数据
loadComplete: function (data) { console.log(data); },
例:
var jgGrid = $("#jgTable").jqGrid({ url: "<%=request.getContextPath()%>/Pe03/toDetails_Audit", datatype: "json", height: 420, autowidth: true, //根据数据自动调整表格宽度 shrinkToFit: false, //根据数据自动调整表格列宽。 postData: {params: {ape061: '${requestScope.ape061}',apa042:'${requestScope.apa042}'}}, rowNum: 10, rowList: [10, 20, 30], colNames:["APE051","AAB300", "序号", "行政区划"], colModel:[ {name: "APE051", index: "APE051", align :"Center", hidden: true}, {name: "AAB300", index: "AAB300", align :"Center", hidden: true}, {name: "ROWNUM", index: "ROWNUM", align: "center"}, {name: "AAB301", index: "AAB301", align: "center"}, ], loadComplete: function (data) { //data是jqgrid发送请求返回的所有数据 console.log(data) }, pager: "#jgPagerList", viewrecords: true, caption: "缴费年限不足按月支付待遇", hidegrid: false });