1
我正在使用datatables,它在表格末尾添加分页。但是我只想在需要的时候显示分页控件,而不是在只有几行的时候。我找不到任何地方来控制这一点。仅在需要时显示分页
$('#tblSubscriptions').dataTable({
"bProcessing": true,
"bServerSide": true,
"sServerMethod": "GET",
"aaSorting": [[0, 'asc']],
"sAjaxSource": "<?php echo base_url() . 'data/grid/' . $website['WebsiteId']; ?>",
"aoColumns": [
null,
null,
null,
{ "bSortable": false },
{ "bSortable": false },
{ "bSortable": false },
{ "bSortable": false }],
"bFilter" : false,
"bInfo" : false,
"sPaginationType": "two_button"
});