use*_*924 5 html javascript datatable jquery
我试图删除此表的页眉/页脚
我要删除的图片:

该表的Jquery代码:
$(document).ready(function() {
var oTable = $('#tableSmooth').dataTable({
"bFilter": false, //Disable search function
"bJQueryUI": true, //Enable smooth theme
"sPaginationType": "full_numbers" //Enable smooth theme
});
});
Run Code Online (Sandbox Code Playgroud)
希望有人可以帮忙!
San*_*non 16
我无法查看图像,但我假设您只想显示表格并删除搜索,分页和信息功能..
在dataTable声明中添加以下属性
"sDom": 't'
Run Code Online (Sandbox Code Playgroud)
有点像这样
$(document).ready(function() {
var oTable = $('#tableSmooth').dataTable({
"bFilter": false, //Disable search function
"bJQueryUI": true, //Enable smooth theme
"sPaginationType": "full_numbers", //Enable smooth theme
"sDom": 't'
});
});
Run Code Online (Sandbox Code Playgroud)
要返回,请用lfrtip替换t
"sDom": 'lfrtip'
Run Code Online (Sandbox Code Playgroud)
要显示某些功能,请将其用作
"sDom": '<"fg-toolbar ui-toolbar ui-widget-header ui-corner-tl ui-corner-tr ui-helper-clearfix"lfr >t <"fg-toolbar ui-toolbar ui-widget-header ui-corner-bl ui-corner-br ui-helper-clearfix"ip>'
l =长度变化
f =过滤输入
r = pRocessing
t =表
我=信息
p =分页
有关更多详细信息,请查看dataTables sDom选项
隐藏分页:
$(document).ready(function() {
var oTable = $('#tableSmooth').dataTable({
"bFilter": false, //Disable search function
"bJQueryUI": true, //Enable smooth theme
"sPaginationType": "full_numbers", //Enable smooth theme
"bPaginate": false //hide pagination
});
});
Run Code Online (Sandbox Code Playgroud)
希望这可以帮助!
| 归档时间: |
|
| 查看次数: |
12331 次 |
| 最近记录: |