2017-10-12 109 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