首先找到找这个文件thinkphp\library\think\paginator\driver\Bootstrap.php
在下一页代码下面加入下面代码
protected function getHomeButton($text = "首页") { if ($this->currentPage() > 1) { return "<a href='" . $this->url(1) . "' title='首页'>首页</a>"; } else { return "<a>首页</a>"; } } protected function getEndButton($text = "尾页") { if ($this->hasMore) { return "<a href='" . $this->url($this->lastPage) . "' title='尾页'>尾页</a>"; } else { return "<a>尾页</a>"; }return "<a>尾页</a>"; }在搜索'<ul class="pagination">%s %s %s</ul>',
替换成
'<ul class="pagination">%s %s %s %s %s</ul>', $this->getHomeButton(), $this->getPreviousButton(), $this->getLinks(), $this->getNextButton(), $this->getEndButton()到这里就完成了