$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分页传参

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-03
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-23
  • 2021-11-23
  • 2022-12-23
  • 2021-08-22
  • 2021-11-23
  • 2022-12-23
相关资源
相似解决方案