JQuery 数据表分页
在数据表中添加日期过滤插件后,我无法使分页正常工作。 原始代码是这样的,它可以很好地获取分页。
$(document).ready(function() {
$('#table1').dataTable({
'sPaginationType': 'full_numbers'
});
这是我当前的一个,带有变量插件,
$(document).ready(function() {
var oTable = $('#table1').dataTable();
"sPaginationType": "full_numbers"
/* Add event listeners to the two range filtering inputs */
$('#min').keyup( function() { oTable.fnDraw(); } );
$('#max').keyup( function() { oTable.fnDraw(); } );
});
提前致谢。
I can't get my pagination to work after I added a date filtering plug-in to datatables.
The original code was like this and it was picking up the pagination fine.
$(document).ready(function() {
$('#table1').dataTable({
'sPaginationType': 'full_numbers'
});
this is my current one with the plug in variables
$(document).ready(function() {
var oTable = $('#table1').dataTable();
"sPaginationType": "full_numbers"
/* Add event listeners to the two range filtering inputs */
$('#min').keyup( function() { oTable.fnDraw(); } );
$('#max').keyup( function() { oTable.fnDraw(); } );
});
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,在你当前的函数中,这部分:
应该这样写:
编辑
如果不清楚,完整的 jQuery 代码应该如下所示:
Well, in your current function, this part:
should be written like this:
Edit
In case it wasn't clear, the full jQuery code should look like this: