datatable显示行号

"columnDefs": [{
                "targets": 0,
                "data": null,
                "render": function(data, type, row,meta) {
                    return meta.settings._iDisplayStart + meta.row + 1;//行号
                }
            }]

你可能感兴趣的:(datatable显示行号)