Datatables reInitialization (jQuery)

前端 未结 5 815
爱一瞬间的悲伤
爱一瞬间的悲伤 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:42

    Calling $('#table').dataTable().fnDestroy(); will clear the table of dataTable code and allow you to manipulate the table, and then call dataTable on it again.

提交回复
热议问题