jqGrid--设置单元格字体颜色
colModel: [ { name: '列名称', index: '列名称', width: 65, sortable: true, resizable: false, cellattr: addCellAttr }] function addCellAttr(rowId, val, rawObject, cm, rdata) { if (条件) { return "style='color:red'"; } }
colModel: [ { name: '列名称', index: '列名称', width: 65, sortable: true, resizable: false, cellattr: addCellAttr }] function addCellAttr(rowId, val, rawObject, cm, rdata) { if (条件) { return "style='color:red'"; } }