看看下面的代码。我在另一个循环中有一个 foreach 循环,但是当我运行页面行时重复。有没有办法停止重复行。这是代码和结果:
![<div class="itemContent">
<table cellspacing="0" cellpadding="0" class="productspecstable" style="float: right">
<tbody>
<!-- B:07L -->
@foreach(var row in select)
{
foreach(var rows in selects)
{
<tr>
<td>@rows.Specifications</td>
<th>@row.LaptopOptions</th>
</tr>
}
}
</tbody>
</table>
</div>