xsl 시트를 정렬하지 않습니다. 나는 tablesorterplugin ~ jquery을 사용합니다.
Getting Started 섹션은 매우 간단합니다 (아래에서 재현됩니다).표준 HTML 테이블에서 작동 tablesorter에
<script type="text/javascript" src="/path/to/jquery-latest.js"></script>
<script type="text/javascript" src="/path/to/jquery.tablesorter.js"></script>
:
이 tablesorter에 플러그인을 사용하려면, jQuery 라이브러리와 HTML 문서의 태그 내부의 tablesorter에 플러그인을 포함한다. 문서가로드되는 테이블 정렬 tablesorter에 말에 의해
이
<table id="myTable">
<thead>
<tr>
<th>Last Name</th>
<th>First Name</th>
<th>Email</th>
<th>Due</th>
<th>Web Site</th>
</tr>
</thead>
<tbody>
<tr>
<td>Smith</td>
<td>John</td>
<td>[email protected]</td>
<td>$50.00</td>
<td>http://www.jsmith.com</td>
</tr>
<tr>
<td>Bach</td>
<td>Frank</td>
<td>[email protected]</td>
<td>$50.00</td>
<td>http://www.frank.com</td>
</tr>
<tr>
<td>Doe</td>
<td>Jason</td>
<td>[email protected]</td>
<td>$100.00</td>
<td>http://www.jdoe.com</td>
</tr>
<tr>
<td>Conway</td>
<td>Tim</td>
<td>[email protected]</td>
<td>$50.00</td>
<td>http://www.timconway.com</td>
</tr>
</tbody>
</table>
시작 : 당신은 THEAD 및 TBODY 태그를 포함해야 헤더에
가
$(document).ready(function()
{
$("#myTable").tablesorter();
}
);
을 클릭하면 테이블 지금 것을 볼 수 있습니다 정렬 가능! 테이블을 초기화 할 때 구성 옵션을 전달할 수도 있습니다. 이것은 tablesorter에게 첫 번째와 두 번째 열을 오름차순으로 정렬하도록 지시합니다.
$(document).ready(function()
{
$("#myTable").tablesorter({sortList: [[0,0], [1,0]]});
}
);
XML을 무엇에 정렬합니까? XML은 어떻게 생겼습니까? – Nosredna