异步分页:
$sql="............";
$result=$m->query($sql);
$count =count($result);
$page = new ExPage($count);
$result2=$m->query($sql.$page->get_limit);
$this->assign(‘page‘,$page->show());
$this->assign(‘list‘,$result2);
再在前台的<table></table>标签后面添加一个{$page}
时间: 2024-10-07 04:50:22