1.在thinkphp/library/think/paginator/driver目录下新建文件Page.php 注意命名空间和继承 <?php namespace think\paginator\driver; use think\Paginator; class Page extends Paginator { public $rollPage=5;//分页栏每页显示的页数 //首页 protected function home() { if ($this->currentPage()…