$count=count($list);
$Page=new \Think\Page($count,4);
$show = $Page->show();
$list=array_slice($list,$Page->firstRow,$Page->listRows);
$this->assign('_list',$list);// 赋值数据集
$this->assign('_page',$show);// 赋值分页输出
列表分页
猜你喜欢
转载自www.cnblogs.com/tangqiang2/p/9817048.html
今日推荐
周排行