@for (int counterA = 0; counterA < TotalIterations; counterA++)
{
<tr>
@for (int DayCounter = (counterA * 10); DayCounter <= ((counterA + 1) * 10) - 1; DayCounter++)
{
<td>a
@{
string @isCurrent = "0";
if (1 == 1)
{
}
}
</td>
}
</tr>
}
答案 0 :(得分:2)
以下行可能是问题:
string @isCurrent = "0";
此处无需放置@
。只需写下:
string isCurrent = "0";