DataTables 报错table.row is not a function

alex python语言评论1阅读模式

最近在使用django_datatables_view做数据联动显示的是否发现报一下错误,

unmap.js:49 Uncaught TypeError: dt_table.row is not a function

at HTMLTableRowElement.<anonymous> (unmap.js:49)

at HTMLTableSectionElement.dispatch (datatables.min.js:14)

at HTMLTableSectionElement.y.handle (datatables.min.js:14)

原来是我在初始化表的时候有问题小记下

Q. I get an error message stating that an API method is not available

A. Very likely you are using a jQuery object rather than a DataTables API instance. The form $().dataTable() will return a jQuery object, while $().DataTable() returns a DataTables API instance. Please see the API documentation for further information.

原来使用$().dataTable() 返回了一个Jquery对象

然后我需要使用API实例

DataTables 报错table.row is not a function

 
 

一个大小写字母的事折腾两个小时

 
 

文章末尾固定信息

 
alex
  • 本文由 alex 发表于 2019年3月13日 23:00:59
  • 转载请务必保留本文链接:https://www.qnjslm.com/ITHelp/1019.html
匿名

发表评论

匿名网友
:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:
确定