Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/384.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 使用bootpag的分页是一种引导功能_Php_Javascript_Jquery_Twitter Bootstrap - Fatal编程技术网

Php 使用bootpag的分页是一种引导功能

Php 使用bootpag的分页是一种引导功能,php,javascript,jquery,twitter-bootstrap,Php,Javascript,Jquery,Twitter Bootstrap,我正在使用bootpag分页来支持我的应用程序中的分页 <div id="demo"> <?php //print_r($data);?> </div> <div id="page-selection"></div> $('#page-selection').bootpag({ total: <?=$totalRows?> }).on("page", function(event, /* page number h

我正在使用bootpag分页来支持我的应用程序中的分页

<div id="demo">
    <?php //print_r($data);?>
</div>
<div id="page-selection"></div>

$('#page-selection').bootpag({
total: <?=$totalRows?>
}).on("page", function(event, /* page number here */ num)
{
    $("#demo").html("Insert content"); // some ajax content loading...  
});

$(“#页面选择”).bootpag({
总数:
}).on(“第页”,函数(事件,/*此处页码*/num)
{
$(“#demo”).html(“插入内容”);//一些ajax内容加载。。。
});

分页正在工作,但所有页面中都显示相同的行,我想设置每页五行,其余行应显示在下一页中,如何使用bootpag设置每页的行数?

能否显示您的PHP代码?我不完全确定问题出在哪里。它是否显示了正确数量的页码,但单击一个新的页码实际上不会改变内容?是的,我需要设置每页显示的行数如何设置