var rowData = jQuery('#grid-table').jqGrid('getRowData',id); if('unsolve'==rowData['securityProblemReply.problemStatus']){ operation += '<button class="btn btn-xs btn-primary" title="编辑" onclick="edit(\'' + id + '\');"><i class="ace-icon fa fa-pencil-square-o bigger-10"></i></button> '; operation += '<button class="btn btn-xs btn-danger" title="删除" type="button" ONCLICK="delItem('+id+')"><i class="ace-icon fa fa-trash-o bigger-110 "></i></button>'; }