控制器:
$page->setConfig('first','首页');
$page->setConfig('last','尾页');
Think下Page.class.php
107和113行修改
//第一页
$the_first = $up_row > 0 ? '<a class="prev" href="' . $this->url(1) . '">' . $this->config['first'] . '</a>' : '<span class="prevNode">'. $this->config['first'].'</span>';
//最后一页
$the_end = ($this->nowPage < $this->totalPages) ? '<a class="prev" href="' . $this->url($this->totalPages) . '">' . $this->config['last'] . '</a>' : '<span class="prevNode">'. $this->config['last'] . '</span>';