Changes between Version 12 and Version 13 of API/BBS/Get-All-Posts-From-Specify-Topic


Ignore:
Timestamp:
05/20/2011 09:45:25 AM (15 years ago)
Author:
pangchongyang
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • API/BBS/Get-All-Posts-From-Specify-Topic

    v12 v13  
    4141}}} 
    4242 
    43 || X-Page || 当前第几页,共多少页 ||  
     43|| X-Page || 当前第几页,共有多少个帖子 ||  
     44 
     45 
     46客户端分页时,必须要作如下设置 
     47 
     48{{{ 
     49PAGINATION_SIZE 10 # 每页里面有多少个 posts 
     50 
     51splits = X-Page.split(",") 
     52current_page_num = splits[0] 
     53total_posts = splits[1] 
     54 
     55total_page = total_posts / PAGINATION_SIZE; # 一共有多少页 
     56}}} 
     57 
    4458 
    4559