DataTables 报错table.row is not a function

  • A+
所属分类:python语言

最近在使用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实例

031319 1500 DataTablest1 - DataTables 报错table.row is not a function

 
 

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

 
 

头像

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: