jquery.dataTables.bootstrap自增序号

"fnDrawCallback": function(){
      this.api().column(0).nodes().each(function(cell, i) {
          cell.innerHTML =  i + 1;
      });
 },
 {
    "sWidth": "10px",
     "sClass": "left",//显示样式
     "title": "序号",
     "data": null,
     "targets": 0
 },

发布了51 篇原创文章 · 获赞 18 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/m0_37882063/article/details/90719986