本文章摘编、转载需要注明来源 http://blog.csdn.net/shadowsick/article/details/8881892
我们的table列表一般有多条数据,如何让用户快速看到自己想看到的数据呢,这个时候再查询一次数据很明显效率不够高,我们可以尝试将符合条件的tr记录移动到首行
下面我们来做个小小的demo,估计数据量太大量的时候效果有点慢,具体调优的自行研究
先写个html加个table列表
<body style="color:#999999;">
<input type="hidden" value="" id="searchv"/>
<table>
<tr><input type="text" id="search" style="width:200px;color:#cccccc;" value="可输入姓名/英文名查询" /> <a href="#" id="sub">查询</a></tr>
</table>
<table style="border:solid thin #cccccc">
<thead>
<tr>
<td align="center" width="15%">序号</td><td align="center" width=&#