- 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实例
一个大小写字母的事折腾两个小时