我正在使用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的基本知識。
你應該用'