{ label: "操作", name: 'act', index: 'act', width: 30, align: 'center' }, gridComplete: function () { var ids = $gridList.jqGrid('getDataIDs'); for (var i = 0; i < ids.length; i++) { var cl = ids[i]; ee = "<a style='cursor:pointer;' onclick=\"editGridRow('" + cl + "');\" ><i class='fa fa-edit'></i></a>"; $gridList.jqGrid('setRowData', cl, { act: ee}); } }