解决Cannot reinitialise DataTable问题 解决dataTables再次调用不能清空数据

这里我们只需要多设置一个字段 “destroy" : true 即可

或者设置retrieve: true,

或者在加载datatable之前使用$("#example").dataTable().fnDestroy();这句话

posted @ 2018-12-21 17:50  y-xs  阅读(1871)  评论(0编辑  收藏  举报