【发布时间】:2012-02-12 09:51:33
【问题描述】:
我刚刚成功地遵循了Twitter Bootstrap 2 DataTables 教程。
现在我有像 example 这样的数据表,但我想删除“每页记录”、“搜索”、“显示 57 个条目中的 1 到 10 个”和“分页”元素,只有表。
我该怎么做?
【问题讨论】:
标签: javascript jquery twitter-bootstrap datatables
我刚刚成功地遵循了Twitter Bootstrap 2 DataTables 教程。
现在我有像 example 这样的数据表,但我想删除“每页记录”、“搜索”、“显示 57 个条目中的 1 到 10 个”和“分页”元素,只有表。
我该怎么做?
【问题讨论】:
标签: javascript jquery twitter-bootstrap datatables
在dataTables构造函数中指定额外的options,即:
$('#example').dataTable( {
"bFilter": false, // Disable searching
"bPaginate": false, // Disable pagination
"bInfo": false // Disable info texts
});
【讨论】: