asp.net学习_分页的设计(7)
来源:未知 责任编辑:责任编辑 发表时间:2014-04-20 03:40 点击:次
77: $content.append($("<a>...</a>"));
78:
79: } else if (endPageIndex > 5 && PageIndex <= 3) {
80:
81: for (var i = 1; i <= 5; i++) {
82: if (i == PageIndex) {
83: $content.append($("<span>" + i + "</span>"));
84: } else {
85: $content.append(renderButton(RecordCount, i, pagerClick, i));
86: }
87:
88: }
89: $content.append($("<a>...</a>"));
90: }
91: }
92: if (PageIndex == endPageIndex) {
93: $content.append($("<span>下一页</span>"));
94: $content.append($("<span>末页</span>"));
95: } else {
96: $content.append(renderButton(RecordCount, nextPageIndex, pagerClick, "下一页"));
97: $content.append(renderButton(RecordCount, endPageIndex, pagerClick, "末页"));
98: }
99:
100:
101: return $content;
102: }
相关新闻>>
最新推荐更多>>>
- 发表评论
-
- 最新评论 更多>>