gridComplete:function(){ // setCell rowid,colname, data, class, properties //找到table下面的日期td tableId + /^[w]+DATE$/ var date = $("td[aria-describedby$='DATE']").text().substr(0, 10); var day = $("td[aria-describedby$='DAY']").text().substr(0, 10); $("td[aria-describedby$='DATE']").text(date); $("td[aria-describedby$='DAY']").text(day); var rowdata = $("#"+tableId).getRowData(); // var colM = $("#"+tableId).jqGrid('getGridParam','colModel'); // var colN = $("#"+tableId).jqGrid('getGridParam','colNames'); for (i = 0; i < rowdata.length; i++) { var row = eval(rowdata[i]); for ( var each in row) { if(row[each]=="null"){ //$("#"+tableId).jqGrid('setCell',{i,each,"--"}); } } } // $("td[aria-describedby$='DATE']").text(date.toString()); //过滤null },