$('#example').DataTable( {"columnDefs": [{"targets": 5,"createdCell": function (td, cellData, rowData, row, col) {if (cellData == '不批准') {$(td).css('color', 'red')}if (cellData == '已批准') {$(td).css('color', 'green')}}}]
} );
参考:http://www.datatables.club/reference/option/columns.createdCell.html