How to get name of datatable column?

后端 未结 5 1437
春和景丽
春和景丽 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:37

    Documentation shows that columns().every() sets this to the current column's column() object. Further examination of the column object shows that it has a column().data() method which returns the data the column contains as an array of values. This should provide the data you need.

提交回复
热议问题