(1):分页标签#pagination参数有
pattern:模式(String)
pageNumber:页码(Int)
totalPages:总页数(Int)
segmentCount:中间段页码数(Int)
(2):返回变量对象
pattern:模式
pageNumber:页码
totalPages:总页数
segmentCount:中间段页码数
hasPrevious:是否存在上一页
hasNext:是否存在下一页
isFirst:是否为首页
isLast:是否为末页
previousPageNumber:上一页页码
nextPageNumber:下一页页码
firstPageNumber:首页页码
lastPageNumber:末页页码
segment:中间段页码
```
#pagination(pageNumber = page.pageNumber,totalPages = page.totalPage,pattern = productCategory.path+"?pageNumber=")
<span class="page_total fwr">总计#(page.totalRow)个记录</span>
#if(totalPages > 1)
#if(hasPrevious)
<a class="page_pre" href="#(pattern)#(previousPageNumber)"><</a>
#end
#for(segmentPageNumber : segment)
#if(segmentPageNumber != pageNumber)
<a href="#(pattern)#(segmentPageNumber)">#(segmentPageNumber)</a>
#else
<span class="page_select">#(segmentPageNumber)</span>
#end
#end
#if(hasNext)
<a class="page_next" href="#(pattern)#(nextPageNumber)">></a>
#end
#end
#end
```