在加载表格之前 手动销毁

 $("#faultTable").dataTable().fnDestroy();

 

如  

function Dt(url){
$("#faultTable").dataTable().fnDestroy();
$('#faultTable').dataTable( {

 

然后在innitcomplete函数中  在重新配置

datatables 只发送一次请求问题

 

 

//加载数据
function loadData() {
if (typeof jsontable == 'undefined' && jsontable != null) { //为了避免多次初始化datatable()
jsontable();
} else {
jsontable.draw();
}
}

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-09
  • 2021-09-20
  • 2022-12-23
  • 2021-12-05
  • 2021-07-25
  • 2022-01-17
猜你喜欢
  • 2022-12-23
  • 2021-07-30
  • 2022-12-23
  • 2022-12-23
  • 2021-07-01
相关资源
相似解决方案