网上找了很多方法都没有实现
解决代码:
$("#table_one_id").dataTable().fnDestroy();
$("#table_two_id").dataTable().fnDestroy();
思路:
在第二次弹窗使用dataTables之前,加上这2行代码。
上面实验也存在问题,会导致默认的dataTables没有展示条数。
建议使用:
shown.bs.modal
原文链接:dataTables头部宽度为0,表头字体竖排,不对齐
个人博客:www.liusongs.com