ThinkPhp5框架——分页功能
摘要:第一种为直接操作数据库方法: class名为Sql的controller,方法为index,paginate()方法,参数规定了每一页显示几条数据 在view视图中的sql文件夹下的index.html中代码部分,通过volist方法进行循环数组 注册路由信息,可选的id参数 第二种方法是通过操作模
阅读全文
posted @ 2019-08-17 11:48
posted @ 2019-08-17 11:48
posted @ 2019-08-03 12:02
posted @ 2019-08-01 15:43
posted @ 2019-08-01 14:56