PageHelper.startPage(param)
时间: 2024-03-07 13:28:39 浏览: 80
pageHelper
PageHelper.startPage(param)是一个用于分页的方法。它通过拦截MySQL的方式,在查询语句前添加limit,从而实现分页效果。为了生效,它必须放在查询语句之前。这个方法接受一个参数param,用于指定当前页码和每页显示的数据条数。例如,如果param为(1, 10),表示显示第一页,每页显示10条数据。 <span class="em">1</span><span class="em">2</span>
#### 引用[.reference_title]
- *1* [使用PageHelper.startPage放置位置](https://blog.csdn.net/weixin_45089578/article/details/119774004)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [乐优商城.xmind](https://download.csdn.net/download/weixin_44796365/11076979)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文