// php代码
$count = M( 'postion' , 'sxb_' )->where( $map_postion )->count(); //?????????
//????
$page = new \Think\Page($count,10); //??tp ???
$p = $page->show(); //?????? ??
//echo $page->listRows ;die();
//????? ??
$pos = M( 'postion' , 'sxb_' )->where($map_postion)->order( 'sort asc' )->limit( $page->firstRow.','.$page->listRows)->select();
//?????????? html
$this->assign('_page', $p? $p: '');
$this->assign( 'pos' , $pos );
//前端html代码
<div class="page">
{$_page}
</div>
$count = M( 'postion' , 'sxb_' )->where( $map_postion )->count(); //?????????
//????
$page = new \Think\Page($count,10); //??tp ???
$p = $page->show(); //?????? ??
//echo $page->listRows ;die();
//????? ??
$pos = M( 'postion' , 'sxb_' )->where($map_postion)->order( 'sort asc' )->limit( $page->firstRow.','.$page->listRows)->select();
//?????????? html
$this->assign('_page', $p? $p: '');
$this->assign( 'pos' , $pos );
//前端html代码
<div class="page">
{$_page}
</div>