JQuery Datatables : Cannot read property 'aDataSort' of undefined

前端 未结 8 1995
日久生厌
日久生厌 2020-12-02 21:43

I created this fiddle to and it works well as per my requirements: Fiddle

However, when I use the same in my application I get an error in the browser console saying

8条回答
  •  我在风中等你
    2020-12-02 22:11

    In my case I solved the problem by establishing a valid column number when applying the order property inside the script where you configure the data table.

    var table = $('#mytable').DataTable({
         .
         .
         .
         order: [[ 1, "desc" ]],
    

提交回复
热议问题