【发布时间】:2015-05-10 18:21:12
【问题描述】:
我有一个表,其中包含这样的容量列:
<table id="datatable" class="display" width="100%">
<thead>
<tr>
<th>Col1</th>
</tr>
</thead>
<tbody>
<tr>
<td>2 Go</td>
</tr>
<tr>
<td>1 To</td>
</tr>
<tr>
<td>320 Go</td>
</tr>
<tr>
<td>2 To</td>
</tr>
<tr>
<td>500 Go</td>
</tr>
</tbody>
</table>
我正在尝试使用 jQuery dataTable 对列进行排序以生成以下内容:
2 Go
320 Go
500 Go
1 To
2 To
但通过阅读排序和插件文档无法弄清楚如何做到这一点。
我尝试了this 解决方案,但无法成功。
【问题讨论】:
标签: javascript sorting jquery-datatables