列表的分页

时间:2012-08-17 15:25:00

标签: javascript jquery html css

我想知道是否有人知道在无序和有序列表上是否有任何优秀的分页插件,我想要一个简单但高度可定制的插件。如果有人有任何建议会很棒,我在下面找到了这个链接,以前有人用过吗?

http://www.jquery4u.com/plugins/10-jquery-pagination-plugins/

2 个答案:

答案 0 :(得分:2)

答案 1 :(得分:1)

试试这个

Int Icount = ds1.Tables[0].Rows.Count(Total no of records, this should be come from Database tables);
        int startindexx = SIndex(here SIndex like a no of pages like 1,2,3,etc, it from your clicking pagination buttons);
        int EndIndex = SIndex;
        if (EndIndex == 1) { EndIndex = 0; }
        if (startindexx > 1) {
            startindexx = startindexx - 1;
            startindexx = startindexx * 10;
            startindexx = startindexx + 1;
            EndIndex = EndIndex * 10;
        }
        else {
            EndIndex = EndIndex + 10;
        }
        var Pages = 0; Pages = Icount / 10; var PagesReminder = Icount % 10;
        Icount = ds1.Tables[0].Rows.Count;
        int startindexx = Convert.ToInt32(SIndex);
        int EndIndex = Convert.ToInt32(SIndex);
        if (EndIndex == 1) {
            EndIndex = 0;
        }
        if (startindexx > 1) {
           startindexx = startindexx - 1;
           startindexx = startindexx * 10;
           startindexx = startindexx + 1;
           EndIndex = EndIndex * 10;
        }
        else {
           EndIndex = EndIndex + 10;
        }
        var Pages = 0; Pages = Icount / 10;
        var PagesReminder = Icount % 10;
        if (PagesReminder != 0) {
           Pages = Pages + 1; 
        }