安装使用:
方式1)使用 composer 命令安装:composer require tcwei/page
方式2)直接在 https://github.com/ITzhiwei/page 的 src目录下找到 Page.php 类库文件,直接拖到你的类目录内,include 该文件可直接使用
用法:
简单使用:
use tcwei\smallTools\Page;
$pageClass = new Page();
$totle = 100;//总条数
$pageHtml = $pageClass->getPageHtml($totle);
echo $pageHtml;
手册:https://github.com/ITzhiwei/page
其中的某些样式(参数可控更多样式):






