laravel框架中报错 DataTables warning: table id=xxx-table - Cannot reinitialise DataTable.
laravel框架中报错 DataTables warning: table id=xxx-table - Cannot reinitialise DataTable.
分析: initializing datatables twice
解决方法:
Try adding "bDestroy": true to the options object literal, e.g.
$('#dataTable').dataTable({
....
....
bDestroy: true
})
亲测有效
参考网址:
www.e-learn.cn/content/wangluowenzhang/281726