Javascript Datatables分页隐藏1 2 3页按钮,并具有Next-Previoud按钮ony
我对html表使用了datadables.net分页。我想隐藏/删除1 2 3。。。分页中的按钮,并且只有“下一个”和“上一个”按钮 是否可能像pagingNumber:false那样(类似于代码中的简单更改) 我的职能:Javascript Datatables分页隐藏1 2 3页按钮,并具有Next-Previoud按钮ony,javascript,jquery,html,pagination,datatables,Javascript,Jquery,Html,Pagination,Datatables,我对html表使用了datadables.net分页。我想隐藏/删除1 2 3。。。分页中的按钮,并且只有“下一个”和“上一个”按钮 是否可能像pagingNumber:false那样(类似于代码中的简单更改) 我的职能: $('#pagination').DataTable( { "pagingType": "full_numbers", "iDisplayLength": 2, "bFilter": false
$('#pagination').DataTable( {
"pagingType": "full_numbers",
"iDisplayLength": 2,
"bFilter": false
} );
您必须设置
"pagingType": "full",
在这里你可以找到所有可能的组合
我希望这会有帮助您必须设置
"pagingType": "full",
在这里你可以找到所有可能的组合
我希望这会有所帮助您有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
} );
您有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
} );
谢谢你,伙计。它很有用:)谢谢你,伙计。这很有帮助:)也谢谢你,伙计。:)帮助:)也谢谢你,伙计。:)有帮助:)