1 实现排序(绑定动态数据)
function initGrid(gridId){
jQuery("#"+gridId).jqGrid({
url:"/loginLog/getLoginLogExtList",
postData:{},
datatype: 'json',
height: $(window).height() - 115,
width: $(window).width() - 7,
rownumbers: true, //行号
pager: "#pager",
recordtext: "第{0} - {1}条 共 {2} 条",
pgtext: '当 前 页 {0} 总 共 {1}页',
rowNum: 50,
rowList: [50, 100,150],
autowidth: false,
viewrecords: true,
loadonce: true,
sortable: true,
colModel: colModel:[
{label:"用户名",name:"username",index:"username",width:"150",align:"center",sortable: true},
{label:"昵称",name:"pickname",index:"pickname",width:"150",align:"center"},
{label:"登陆时间",name:"loginTime",index:"loginTime",width:"200",align:"center"},
{label:"登陆城市",name:"loginArea",index:"loginArea",width:"200",align:"center"},
{label:"ISP运营商",name:"loginIsp",index:"loginIsp",width:"100",align:"center&#