这次使用的是jquery.tablesorter.js来排序

1.

    <link href="/Scripts/jqueryplugin/tablesorter/style.css" rel="stylesheet" type="text/css" />
    <script src="/Scripts/jqueryplugin/jquery.tablesorter.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $("#tbMain").tablesorter();
        });
    </script>

 

2.要排序的用th标识

<table >
                    <thead>
                        <tr>
                            <th>
                                日期
                            </th>
                            <th>
                                住宿人数
                            </th>
                            <td>
                                游览人数
                            </td>
                        </tr>
                    </thead>

3.在itemtemplate中加入各种tr>td 结束了

4.如图

Repeater排序2

相关文章:

  • 2022-12-23
  • 2022-01-21
  • 2022-12-23
  • 2021-12-27
  • 2021-07-26
  • 2021-05-01
  • 2021-10-04
  • 2021-08-05
猜你喜欢
  • 2021-09-08
  • 2021-12-09
  • 2021-11-30
  • 2021-12-07
  • 2021-09-09
  • 2021-08-10
相关资源
相似解决方案