$name ??= input(‘get.searchKey/s‘);if($name != ""){ ???$this->assign(‘searchKey‘, $name); ???$map[‘name‘] = [‘like‘,‘%‘.$name.‘%‘];}$map[‘delete‘] = 0;$list = Db::name(‘goods‘)->where($map) ???->paginate(10,false,[‘query‘=>request()->param()]);$this->assign(‘list‘, $list) ???->assign(‘empty‘, ‘<td colspan="9">暂无数据</td>‘);return $this->fetch();
thinkphp5分页传参
原文地址:https://www.cnblogs.com/qhorse/p/8986598.html