bootstrap--------bootstrap table显示行号

bootstrap table 显示行号

1  <th  rowspan="2" data-field="index" data-formatter="indexFormatter" >序号</th>
1 <script>
2     function indexFormatter(value, row, index) {
3         return index + 1;
4     }
5 </script>

 

posted @ 2018-07-07 10:53  chocolateXLL  阅读(236)  评论(0编辑  收藏  举报