我使用的DataTable的插件版本的作品 - 15年1月10日行重新排序不DataTable中的jQuery插件
我想让我的表行拖拽改变排序顺序和我使用数据表的“行重新排序”功能,但它不工作
给我一个错误:Uncaught TypeError: table.rowReordering is not a function
This is my work但不工作
我,试图包括所有相关的外部资源
我的剧本是
$(document).ready(function() {
var table = $('#example').DataTable({
"iDisplayLength": 50,
'createdRow': function(row, data, dataIndex) {
$(row).attr('id', 'row-' + dataIndex);
}
});
table.rowReordering();
});
请帮我找出我错了,通过看我的例子
哎尼迪,我觉得你可以找相同的那样?[点击这里](https://editor.datatables.net/examples/extensions/rowReorder) –
'$(文件)。就绪(函数(){ 变种表= $( '#例子')数据表({ iDisplayLength:50, \t rowReorder:真, createdRow:功能(行,数据,dataIndex){ $(行)。 attr('id','row-'+ dataIndex); } }); });' –
感谢您的帮助,是@ JaykumarGondaliya我一个暗示从这里遵循的步骤,但给了我一个error.You可以看到我的try.I提供我的问题小提琴链接 – Nidhi