我可以忽略 jquery 表排序插件中特定列的排序吗?
因此,基本上,当页面加载时,我不希望在“搜索”列上进行任何排序,因为它包含图像并自行进行一些 JavaScript 处理,这会大大减慢我的排序速度。
这是我的代码:
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery("table").tablesorter({
});
});
puts "<table cellspacing=\"1px\" class=\"tablesorter\" >"
puts "<thead>"
puts "<tr>"
puts "<th>Search</th>"
puts "<th>Sub-App</th>"
puts "<th>Division</th>"
puts "<th>Region</th>"
puts "<th>Market</th>"
puts "<th>Language</th>"
puts "<th>Function</th>"
puts "<th>LOB</th>"
puts "<th>Term</th>"
puts "<th>Center</th>"
puts "</tr>"
puts "</thead>"
puts "<tbody>"
puts "<tr>"
puts "<td id=\"$cellID\">"
puts "<img src=\"images/magnifier.gif\" style=\"cursor:pointer\" onclick=\"showRouting({'spec':'${specific}', 'id':'${mkt_id}', 'name':'${mkt_name}', 'xfer':'${xfertype}', 'cell':'${cellID}'})\"</img>"
puts "</td>"
puts "<td>$level</td>"
puts "<td>$div_name</td>"
puts "<td>$reg_name</td>"
puts "<td>$link</td>"
puts "<td>$lang</td>"
puts "<td>$func</td>"
puts "<td>$lob</td>"
puts "<td>$term</td>"
puts "<td>$ctr_name</td>"
puts "</tr>"
puts "</tbody>"
puts "</table>"
根据文档 http://mottie.github.com/tablesorter/docs/example-options-headers.html,您现在可以使用class="sorter-false"
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)