thinkphp分页类使用,以及修改,添加了每页第一和最后的序号

function index(){ // 分页查询 // 每页显示的记录数 $limit = 5; // 获取总记录数量 $total = $model->where($cond)->count(); // 获取分页Page对象 $page = new Page($total, $limit); // 完成查询 $rows = $model ->where($cond)
相关文章
相关标签/搜索