返回分页数据

   $total = count($showList);
   $offset = ($page - 1) * $limit;
   $spliceData = array_slice($showList, $offset, $limit);
posted @ 2020-09-02 13:46  Json159  阅读(369)  评论(0编辑  收藏  举报