2012-04-20 34 views

回答

2

,可以用一些這樣的事

$(document).ready(function() { 
       $('#myTable').dataTable({ 
            "aLengthMenu": [ 
      [25, 50, 100, 200, -1], 
      [25, 50, 100, 200, "All"] 
     ], 
            "iDisplayLength" : 50 
           }); 
      }); 
3

嘗試使用

"iDisplayLength" : yourValue 

假設你需要顯示25條記錄,然後使用:

$(document).ready(function() { 
$('#example').dataTable({ 
"sPaginationType": "full_numbers", 
"iDisplayLength" : 25 
}); 
});