ThinkPHP,page,paginate后台分页翻页时保留检索条件的方法
paginate(20,false,['query'=>request()->param()]); 20是每页显示行数
示例代码:
$list = Db::name('article')->paginate(20,false,['query'=>request()->param()]);
paginate(20,false,['query'=>request()->param()]); 20是每页显示行数
示例代码:
$list = Db::name('article')->paginate(20,false,['query'=>request()->param()]);