我正在使用 jQuery 数据表,并在表顶部显示 [] 条目。不过,我想把它移到底部。
下面是我的 jQuery 代码:
$(document).ready(function() {
$('#ple').dataTable({
"dom": '<"pull-left"f><"pull-bottom"l>tip'
});
});
请您参考如下方法:
来自“https://datatables.net/examples/basic_init/dom.html”=>
l - Length changing
f - Filtering input
t - The Table!
i - Information
p - Pagination
r - pRocessing
< and > - div elements
<"#id" and > - div with an id
<"class" and > - div with a class
<"#id.class" and > - div with an id and class
这是我使用的代码;
$('table.tableClass').DataTable({
"dom": '<"top"f>rt<"bottom"lp><"clear">'
});
ps:(我不使用“i”:信息,所以如果您需要“i”,请添加您想要的地方);
ps2 : ('table.tableClass') 也处理多个表。您可以对一张表使用 ('#tableID')。
