1、首先你得引入layui文件吧

2、在 application\config.php 中配置,像这样,,,

TP5之使用layui分页样式

3、controller中这样写

       $data = Db::table($table)
->paginate(10);//查出数据表所有数据

view中这样写
    {$data->render()}

over!喽

对,效果图在这
TP5之使用layui分页样式

 

 

相关文章:

  • 2021-06-25
  • 2021-04-26
  • 2021-10-12
  • 2021-04-29
  • 2021-12-07
  • 2022-12-23
  • 2022-01-05
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-04
相关资源
相似解决方案