JQuery Datatables : Cannot read property 'aDataSort' of undefined

前端 未结 8 1975
日久生厌
日久生厌 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

    You need to switch single quotes ['] to double quotes ["] because of parse

    if you are using data-order attribute on the table then use it like this data-order='[[1, "asc"]]'

提交回复
热议问题