我有一個非常簡單的表,它使用jQuery EasyUI最基本的功能,它只是不會爲我排序。這裏是一個JSFiddlejQuery EasyUI datagrid:對不工作的靜態數據進行排序
<html>
<head>
<link rel="stylesheet" type="text/css" href="http://www.jeasyui.com/easyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="http://www.jeasyui.com/easyui/themes/icon.css">
<link rel="stylesheet" type="text/css" href="http://www.jeasyui.com/easyui/demo.css">
<script src="http://www.jeasyui.com/easyui/jquery.min.js"></script>
<script src="http://www.jeasyui.com/easyui/jquery.easyui.min.js"></script>
</head>
<body>
<table class="easyui-datagrid" title="Unallocated Subnets" data-options="singleSelect:true">
<thead>
<tr>
<th data-options="field:'a',width:80,sortable:true">A</th>
<th data-options="field:'b',width:80,sortable:true">B</th>
<th data-options="field:'c',width:80,sortable:true">C</th>
<th data-options="field:'d',width:80,sortable:true">D</th>
</tr>
</thead>
<tbody>
<tr>
<td>a</td><td>a</td><td>a</td><td>a</td>
</tr>
<tr>
<td>b</td><td>b</td><td>b</td><td>b</td>
</tr>
</tbody>
</table>
</body>
任何幫助是極大的讚賞。
對不起,我編輯的錯誤後,我添加這些屬性,我沒有想到我可以編輯別人的別人的帖子... –