点击显示的属性值,弹出相应信息页面
例如:
$("#jqGrid").jqGrid({
url: baseURL + '接口号',
datatype: "json",
colModel: [
{ label: '属性A', name: 'numA', index: 'numA', width: 80},
{ label: '属性B', name: 'numB', index: 'numB', width: 80},
{ label: '属性C', name: 'numC', width: 80,sortable:false,
formatter: function (cellvalue, options, rowObject) {
var x=rowObject.checkDate;
return "<a href='#' style=\"color:#f60\" onclick='detail(\""+rowObject.属性1+"\",\""+rowObject.属性2 +"\",\""+rowObject.属性3+"\",\""+rowObject.属性4+"\",\""+rowObject.属性5+"\")'>"+rowObject.属性6+"</a>"}
}]
});