use think\Paginator;   //paginator类的引入

$where = array();

 $getInfo = input("get.");
 $getParam = ['query' => []];   //paginator的数据传到页面数组类型定义
        if (input("get.")) {   //分页查询条件查询的接收
            $getParam["query"][""] = input("get.");
            $where[""] = input("get.");
        }
        if (input("post.")) {//首次条件查询的数据接收
            $getCheckInfo = input("post.");
            $where[""] = $getCheckInfo;
            $getParam["query"][""] = $getCheckInfo;
        }
        $res = Db::table("")->where($where)->order("")->paginate(13, false, $getParam);
        $this->assign("InfoList", $res);

        return $this->fetch();

//实现效果  bookstrap引入thinkphp5的分页paginator的实现

相关文章:

  • 2021-08-12
  • 2021-12-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-02
  • 2022-12-23
猜你喜欢
  • 2021-04-06
  • 2021-10-14
  • 2021-11-23
  • 2021-08-16
  • 2022-12-23
  • 2021-11-23
相关资源
相似解决方案