thinkphp5.0 使用自带的paginate方法分页查询数据,返回的是一个Paginator对象,而不是最原始的数据,如何判断我提取出来的数据是否为空?
1 回答

慕标3428724
TA贡献1条经验 获得超0个赞
$list=xxx->paginate(10); $count=$list->count(); if($count=0){ echo "数据为空" }
- 1 回答
- 0 关注
- 2313 浏览
添加回答
举报
0/150
提交
取消