2015-03-13 70 views
-2
$(document).ready(function() { 
    var oTable = $('#example').dataTable({ 
     "sScrollY": "300px", 
     "sScrollX": "100%", 
    "sScrollXInner": "150%", 
     "bScrollCollapse": true, 
     "bPaginate": false 
    }); 

    new $.fn.dataTable.FixedColumns(oTable); 
}); 

這是行不通的如何使用jQuery

回答

0

您的問題果醬第一列是不明確的,但如果你想停止在數據表第一列排序使用aoColumns關鍵字。 像這樣的東西

$('#example').dataTable({ 
    "aoColumns": [ 
    { "bSortable": false }, 
    null, 
    null, 
    null 
    ] 
});