如何将 class 添加到除数据 table 中第一列之外的所有 table 列

How To add class to all table columns except first column in datatable

假设 Ajax 数据table 其中第一列包含记录基本操作,其余列是记录值。我想要的是,我想将 class name say dummy 添加到除第一个以外的所有 table 列。 请帮助。

以下代码满足要求

columnDefs: [ { className: "listViewRecordActions", orderable: false, "searchable": false, targets: [0] }, { className: "listViewEntryValue", "targets": [ '_all' ] } ],