2013-07-04 69 views
0

我將在B, MB, GB, TB的列中包含文件大小。我正在使用jQuery tablesorter。現在我正在使用桌面分揀機:在表排序器jQuery中對文件大小進行排序?

$(document).ready(function() { 
     // call the tablesorter plugin 
     if ($("#product-table tbody td").length > 0){ 
     $("table").tablesorter({ 
      // sort on the first column and third column, order asc 
      sortList: [[0,0],[2,0]] 
     }); 
     } 
    }); 

如何根據文件大小對列進行排序?

回答