效果:
原理是覆盖原有方法 pageHtmlControl 相关js:
function pageHtmlControl(b) {
var a = ['<ul class="pagination">\n'];
a.push('<li class="disabled controls" title="' + $.jgrid.extend.pageTitle + '">' + $.jgrid.extend.pageLabelA + " ");
a.push('<input type="text" value="' + b.pageNo + '" onkeypress="var e=window.event||event;var c=e.keyCode||e.which;if(c==13)');
a.push(b.funcName + "(this.value," + b.pageSize + ",'" + b.funcParam + '\');" onclick="this.select();"/> ' + $.jg