用法:
添加JS
QUOTE:
<SCRIPT src=//sorttablejs type=text/JavaScript></SCRIPT>
添加TABLE注意的是一定要有IDclass为sortable
QUOTE:
<table class=sortable id=mytable>
OK可以了简单的吧
如果觉得太单调自己加点CSS吧官方给出了改HEAD的CSS
QUOTE:
/* Sortable tables */
tablesortable asortheader {
backgroundcolor:#eee;
color:#;
fontweight: bold;
textdecoration: none;
display: block;
}
tablesortable spansortarrow {
color:black;
textdecoration: none;