jqgrid如何将phButtons值(即:上一页、下一页)传回后台Java程序? 5
onPaging: function(pgButton) { //当点击翻页按钮但还为展现数据时触发此事件, 当然这跳转栏输入页
//码改变页时也同样触发此事件
alert(pgButton); //first_booklistpage, prev_booklistpage, next_booklistpage,
//last_booklistpage
var newurl = "";
if(pgButton == "next"){
//alert($("input[maxlength='7']").val());
newurl = "url?pageIndex="+(parseInt($("input[maxlength='7']").val())+1);
} else if(pgButton == "prev") {
newurl = "url?pageIndex="+(parseInt($("input[maxlength='7']").val())-1);
} else if(pgButton == "first"){
newurl = "url?pageIndex=1";
}
jQuery("#表格id").jqGrid("setGridParam", {url:newurl});
},
2014-10-15