JQuery DataTables插件:TypeError:e [j]未定义

1DM*_*DMF 8 ajax jquery datatables jquery-datatables

我不明白为什么DataTables在FF中抛出此错误:TypeError:e [j]未定义

在IE中它被报告为:无法获取未定义或空引用的属性'aDataSort'

这是代码

HTML

<table id="fp_promotion_history">
<thead>
    <tr>
        <th>AuditID</th>
        <th>Action</th>
        <th>Description</th>
        <th>User Name</th>
        <th>Audit Date</th>
    </tr>
</thead>
<tbody>
    <tmpl_loop name='fp_history'>
        <tr id="AuditID_<tmpl_var name='AuditID'>">
            <td data-AuditID="<tmpl_var name='AuditID'>"><tmpl_var name='AuditID'></td>  
            <td data-Action="<tmpl_var name='Action'>"><tmpl_var name='Action'></td>
            <td data-Audit_Desc="<tmpl_var name='Audit_Desc'>"><tmpl_var name='Audit_Desc'></td>
            <td data-User_Name="<tmpl_var name='User_Name'>"><tmpl_var name='User_Name'></td>               
            <td data-Audit_Date="<tmpl_var name='Audit_Date'>"><tmpl_var name='Audit_Date'></td>
        </tr>
    </tmpl_loop>
</tbody>
</table>
Run Code Online (Sandbox Code Playgroud)

JQuery的

        showDialog({content:data,title:'Financial Promotion Audit Trail History (FPID : ' + $('#fp_promotions_table tr.selected').attr('id') + ')'});                                            

        // turn into a datatable
        $('#fp_promotion_history').dataTable({        
                "sDom": 'R<"H"fr>t<"F"ip>',            
                "bJQueryUI": true,
                "sPaginationType": "full_numbers",
                "iDisplayLength": 25,
                "order": [[ 5, "desc" ]]
        });
Run Code Online (Sandbox Code Playgroud)

我不明白的是我已经在页面上有一个工作正常的数据表.

我进行了AJAX调用,使用JQuery UI对话框显示结果(表),但是当我尝试将其转换为DataTable时,它只是错误?

该文档意味着多个表是可以的:http://legacy.datatables.net/release-datatables/examples/basic_init/multiple_tables.html

那么我做错了什么?

谢谢,1DMF

1DM*_*DMF 7

我相信这是由于订单参数

"order": [[ 5, "desc" ]] 
Run Code Online (Sandbox Code Playgroud)

看起来列排序是基于ZERO的,从文档中不是那么清楚:https://datatables.net/reference/api/order()

它一直提到第1列为[1]而不是[0].