tablesorter设置默认拍序列, Set Default Sorting For a Column using tablesorter

 

$(function(){
    var columnIndex = $('table').find('th:contains("age")').index() || $('table').find('th:last-child').index();

    $('table').tablesorter({
        sortList : [[ columnIndex, 1 ]]
    });
});

 

本文: tablesorter设置默认拍序列, Set Default Sorting For a Column using tablesorter

Leave a Reply