码迷,mamicode.com
首页 > 其他好文 > 详细

bootstrap--------bootstrap table

时间:2018-07-07 11:17:36      阅读:134      评论:0      收藏:0      [点我收藏+]

标签:formatter   class   return   rip   trap   rap   序号   row   for   

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>

 

bootstrap--------bootstrap table

标签:formatter   class   return   rip   trap   rap   序号   row   for   

原文地址:https://www.cnblogs.com/chocolatexll/p/9276628.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!