我正在使用ng-repeat来形成表中的行。对于每一行我都需要显示一些需要跨越该行所有单元格的数据。ng-repeat每次重复添加两行
<tr ng-repeat="cr in results.crs">
<td>cell 1</td>
<td>cell 2</td>
</tr>
我想是这个 -
<tr ng-repeat="cr in results.crs">
<td>cell 1</td>
<td>cell 2</td>
</tr >
<td colspan=2>The Special Cell</td>
<tr>
</tr>
然而,NG-重复不允许对每个repeat.I两行试图做以下但不工作。
<tr ng-repeat="cr in results.crs">
<td>cell 1</td>
<td>cell 2</td>
</tr >
<td>The Special Cell</td>
<tr>
</tr>
有没有办法每次重复添加两行?
此外,任何人都可以建议任何替代方法来做到这一点?我使用表结构,因为它更容易设计,我有HTML + CSS的基本知识。
你应该用'