安然不哭-西坝阿超个人博客

做技术一定要一颗恒心,这样才不会半途而废。

thinkphp5 分页带参数

2018-8-26 钟建超

 $pageParam    = ['query' =>[]];
 $pageParam['query']['title'] = $text;
$list = $res->order("id desc")->paginate(15, false, $pageParam);

标签: php