{if($lists)} <ul class="pagination"> <li class="page-item {if(!$listpage['prev'])}disabled{/if}"> <a class="page-link" href="{$listpage['prev']}" aria-label="Previous"><span aria-hidden="true">«</span></a></li> {foreach $listpage['list'] as $ss} 当前页码:$listpage['current_num'] 分页页码:$ss['num'] 分页链接:$ss['url'] <li class="page-item {if($ss['num']==$listpage['current_num'])}active background{/if}"><a href="{$ss['url']}" class="page-link">{$ss['num']}</a></li> {/foreach} <li class="page-item {if(!$listpage['next'])}disabled{/if}"><a class="page-link" href="{$listpage['next']}" aria-label="Next"><span aria-hidden="true">»</span></a></li> </ul> {/if}