简介
Tablesorter 是一个用来直接在浏览器上对表格数据进行排序的jQuery插件,无需再次刷新页面,支持多种单元格数据类型,例如数值、字符串、日期和自定义排序。
使用
<link href="<%=basePath %>static/jQuery/style.css" rel="stylesheet" />
<script type="text/javascript" src="<%=basePath %>static/jQuery/jquery-latest.js" ></script>
<script type="text/javascript" src="<%=basePath %>static/jQuery/jquery.tablesorter.js" ></script>
jquery.tablesorter.min.js tablesorert官网 http://tablesorter.com
2.html页面:
<table id="table_report" class="table table-bordered table-striped add-tb-set table-hover tablesorter" style="font-size:11pt;">
<thead class="tb-fcolor">
<tr>
<