<
最初のセグメントが機能し、2 番目のセグメントがラベル タグで「無効な表現用語 ' ' エラーをスローするのはなぜですか?
最初のセグメント:
@foreach( var f in new List<List<string>>{ new List<string>{ new List<string>{ "PumpSize", "Pump Size" },
new List<string>{ "PumpType", "Pump Type" },
new List<string>{ "WellHead", "Well Head" } } )
{
<label>@f[1]
</label>
}
2 番目のセグメント:
@{
var fields = new List<List<string>>{ new List<string>{ new List<string>{ "PumpSize", "Pump Size" },
new List<string>{ "PumpType", "Pump Type" },
new List<string>{ "WellHead", "Well Head" } };
fields.ForEach( f =>
{
<label>@f[1]</label>
} );
}
私が得るエラーは<label>
、「無効な表現用語 ' <
'.
問題があれば、私のブラウザは IE9 です。