首页 > web前端 > js教程 > jquery实现表格本地排序的方法_jquery

jquery实现表格本地排序的方法_jquery

WBOY
发布: 2016-05-16 16:10:14
原创
1117 人浏览过

本文实例讲述了jquery实现表格本地排序的方法。分享给大家供大家参考。具体实现方法如下:

复制代码 代码如下:



    jquery 表格排序
   
   
   
');
                for (var page = 0; page                     $('').text(page + 1)
                     .bind('click', { newPage: page }, function(event) {
                         currentPage = event.data['newPage'];
                         $table.trigger('repaginate');
                         $(this).addClass('active').siblings().removeClass('active');
                     }).appendTo($pager).addClass('clickable');
                }
                $pager.insertBefore($table);
                $table.trigger('repaginate');
                $pager.find('span.page-number:first').addClass('active');
            });
        });
   


   

   

       
           
               
                   
                   
                   
                   
                   
                   
               
           
           
               
                   
                   
                   
                   
                   
                   
               
               
                   
                   
                   
                   
                   
                   
               
               
                   
                   
                   
                   
                   
                   
               
               
                   
                   
                   
                   
                   
                   
               
           
       

                        Last Name
                   

                        First Name
                   

                        Email
                   

                        Due
                   

                        Date
                   

                        Web Site
                   

                        tmith
                   

                        erthn
                   

                        eth@gmail.com
                   

                        $34.00
                   

                       14 2009
                   

                        ftp://www.baidu.com
                   

                        TTmith
                   

                        BJohn
                   

                        jsmith@gmail.com
                   

                        $50.00
                   

                        Mar 2009
                   

                        ftp://www.baidu.com
                   

                        CSmith
                   

                        John
                   

                        DDDD@gmail.com
                   

                        $50.00
                   

                        Mar 2009
                   

                        http://www.jb51.net
                   

                        Smith
                   

                        John
                   

                        sdsf@gmail.com
                   

                        $50.00
                   

                        f32 2009
                   

                        ffttp://www.jb51.net
                   

   

   



希望本文所述对大家的jquery程序设计有所帮助。

相关标签:
来源:php.cn
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板