{"action":"created","issue":{"url":"https://api.github.com/repos/JoleneOL/market-manage/issues/8","repository_url":"https://api.github.com/repos/JoleneOL/market-manage","labels_url":"https://api.github.com/repos/JoleneOL/market-manage/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/JoleneOL/market-manage/issues/8/comments","events_url":"https://api.github.com/repos/JoleneOL/market-manage/issues/8/events","html_url":"https://github.com/JoleneOL/market-manage/issues/8","id":230166882,"number":8,"title":"滚动刷新的一个数学问题","user":{"login":"caijiang","id":7594914,"avatar_url":"https://avatars0.githubusercontent.com/u/7594914?v=3","gravatar_id":"","url":"https://api.github.com/users/caijiang","html_url":"https://github.com/caijiang","followers_url":"https://api.github.com/users/caijiang/followers","following_url":"https://api.github.com/users/caijiang/following{/other_user}","gists_url":"https://api.github.com/users/caijiang/gists{/gist_id}","starred_url":"https://api.github.com/users/caijiang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caijiang/subscriptions","organizations_url":"https://api.github.com/users/caijiang/orgs","repos_url":"https://api.github.com/users/caijiang/repos","events_url":"https://api.github.com/users/caijiang/events{/privacy}","received_events_url":"https://api.github.com/users/caijiang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-05-20T17:16:48Z","updated_at":"2017-05-21T02:01:19Z","closed_at":null,"body":"在当前场景中\r\n\r\n绝大部分都是 先由服务端渲染一部分数据（0-19）；然后通过AJAX获取更多通过page控制\r\n但是如果切换了tab,比如在我的团队中；我选择了级别；这个时候就是完全由Ajax给数据，但很可惜给的page依然是1开始的。\r\n\r\n我的意见是放弃服务端渲染，第一部分数据(0-19)也是通过AJAX获取。\r\n\r\n这样避免此类的数学问题，也避免了当前tab和其他tab需要不同的逻辑，导致前端以及后端的复杂度都提高。\r\n"},"comment":{"url":"https://api.github.com/repos/JoleneOL/market-manage/issues/comments/302910054","html_url":"https://github.com/JoleneOL/market-manage/issues/8#issuecomment-302910054","issue_url":"https://api.github.com/repos/JoleneOL/market-manage/issues/8","id":302910054,"user":{"login":"chang0022","id":6067222,"avatar_url":"https://avatars2.githubusercontent.com/u/6067222?v=3","gravatar_id":"","url":"https://api.github.com/users/chang0022","html_url":"https://github.com/chang0022","followers_url":"https://api.github.com/users/chang0022/followers","following_url":"https://api.github.com/users/chang0022/following{/other_user}","gists_url":"https://api.github.com/users/chang0022/gists{/gist_id}","starred_url":"https://api.github.com/users/chang0022/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chang0022/subscriptions","organizations_url":"https://api.github.com/users/chang0022/orgs","repos_url":"https://api.github.com/users/chang0022/repos","events_url":"https://api.github.com/users/chang0022/events{/privacy}","received_events_url":"https://api.github.com/users/chang0022/received_events","type":"User","site_admin":false},"created_at":"2017-05-21T02:01:19Z","updated_at":"2017-05-21T02:01:19Z","body":"其实这个问题仅仅出现在我的团队中这个页面。而且选择了级别后确实会从1开始，是我特意处理了一下。[myTeam.js](https://github.com/JoleneOL/market-manage/blob/master/wechat-service/src/main/resources/wechat-resource/assets/js/myTeam.js#L97) 原因是，该页面的tab 切换别其他的不同，处理起来略有麻烦，而且我想的是该页面的使用频率不一定很高。每次切换都从第一页开始，不失一个这种的想法。\r\n但 personCenter 下的所有 tab代码都是独立的。每个都有各自的页面记录。不会印象其他。"}}
{"actor":{"display_login":"chang0022"}}