$('.dataTables-example').dataTable({
responsive: true,
"dom": 'T<"clear">lfrtip',
"columnDefs": [{ "orderable": false, "targets": 0 }]
});

上述代码中

"columnDefs": [{ "orderable": false, "targets": 0 }]

这句就是禁止第一列排序,target的0表示第一列。多列禁止排序如下:

"columnDefs": [{ "orderable": false, "targets": 0 },{ "orderable": false, "targets": 0 }]

Related Posts: jQuery-DataTables 插件-禁止第一列排序 :