thinkphp5 paginate 分页参数
2022-07-28 14:14:58
159
{{single.collect_count}}
查看thinkphp5 paginate()函数

paginate() 函数可以带三个参数:

$listRows  每页数量 数组表示配置参数

$simple   是否简洁模式或者总记录数 如果为true,那么分页的就是只有上一页和下一页

$config   配置参数 具体可以自己传入或者在配置文件中配置


$config 参数具体配置

参数描述
list_rows每页数量
page当前页
pathurl路径
queryurl额外参数
fragmenturl锚点
var_page分页变量
type分页类名

回帖
全部回帖({{commentCount}})
{{item.user.nickname}} {{item.user.group_title}} {{item.friend_time}}
{{item.content}}
{{item.comment_content_show ? '取消' : '回复'}} 删除
回帖
{{reply.user.nickname}} {{reply.user.group_title}} {{reply.friend_time}}
{{reply.content}}
{{reply.comment_content_show ? '取消' : '回复'}} 删除
回帖
收起
没有更多啦~
{{commentLoading ? '加载中...' : '查看更多评论'}}