How to get name of datatable column?

后端 未结 5 1418
春和景丽
春和景丽 2021-02-18 16:25

I\'m using DataTable 1.10.9 (from https://datatables.net). Columns for the datatable are defined at the initialization step in javascript and each column has a unique name, e.g.

5条回答
  •  抹茶落季
    2021-02-18 16:58

    You can try using this another method. "index" variable is a column of your thead. This method will get the thead column of your table and read the text inside tag.

    dataTable.column(index).header().textContent

提交回复
热议问题