关于分页标签的判断问题

#1 ry.china


     <{foreach from=$pager.all_pages item=thepage}>
         <{if $thepage!=$pager.current_page&&($thepage>=$pager.current_page-2||$thepage>=$pager.current_page+2) }>
我这个判断始终没执行好晕哟,各位给鉴赏下啥

2010-06-23 21:09:16

#2 jake

循环到current_page的时候判断相等就知道当前页了,上面加上旁边两个page是为什么呢?

2010-06-24 09:40:54