2017-10-12 107 views

回答

1

你有4個選項:

simple - 'Previous' and 'Next' buttons only 
simple_numbers - 'Previous' and 'Next' buttons, plus page numbers 
full - 'First', 'Previous', 'Next' and 'Last' buttons 
full_numbers - 'First', 'Previous', 'Next' and 'Last' buttons, plus page numbers 
So in your case : 

$('#pagination').DataTable({ 
     "pagingType": "simple", 
     "iDisplayLength": 2, 
     "bFilter": false 
    }); 
+0

謝謝男人。這是有益的:) – Logeshwaran