Datatables reInitialization (jQuery)

前端 未结 5 802
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-04 08:54

When I load my page in first place there nothing in the table and the datatable is not initializated, after a few interactions rows are added and when all rows are added (wi

5条回答
  •  南方客
    南方客 (楼主)
    2021-01-04 09:34

    When you initialize the datatable set bDestroy: true and before adding the update clear table via $('#myTable').dataTable().fnClearTable();. Thats it!!

提交回复
热议问题