[英]How to change pageLength to 200
I am using jquery.dataTables.min.js (datatables.net) version 1.9.4. 我正在使用jquery.dataTables.min.js(datatables.net)版本1.9.4。
I have tried this: 我已经试过了:
$('#DataTables_Table_0').DataTable({
"pageLength": 200
});
And I believe I have the ID right, from looking here: 我相信我的ID是正确的,可以从这里查看:
It does nothing. 它什么也没做。 My datatable still defaults to 10 records per page/view.
我的数据表仍然默认为每页/视图10条记录。
If the answer is that I need to upgrade, I took a peek at the latest, and there are a thousand different files. 如果答案是我需要升级,那么我最近进行了一次窥视,发现有一千个不同的文件。 I couldn't find a single tidy js file that I can plug in, and have no idea which to use.
我找不到可以插入的整洁js文件,也不知道该使用哪个文件。 Any ideas?
有任何想法吗?
The docs indicate that pageLength
is available Since: DataTables 1.10
文档指示
pageLength
可用, Since: DataTables 1.10
I was able to use iDisplayLength to achieve the desired result. 我能够使用iDisplayLength达到所需的结果。 I think that's also what you're looking for?
我想这也是您要找的东西吗?
https://datatables.net/forums/discussion/542/dynamically-change-idisplaylength https://datatables.net/forums/discussion/542/dynamically-change-idisplaylength
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.