web前端表格中一对多显示数据库中的数据的效果
一、效果图
二、实现方法
1.在mysql中查询时,要为每个数据添加一条count,表示需要合并的数据,count为0时默认为1
2.前端代码
代码如下(示例):
<table id="table_report" class="table table-striped table-condensed table-bordered table-hover" style="margin:5px 0px 0px 2px;">
<thead>
<tr>
<th>11</th>
<th>22</th>
</tr>
</thead>
<tbody>
<input type