当前位置: 代码迷 >> 综合 >> Getting index value on razor foreach
  详细解决方案

Getting index value on razor foreach

热度:8   发布时间:2024-01-10 02:18:31.0

http://stackoverflow.com/questions/10326406/getting-index-value-on-razor-foreach

 @{
    int i = 0;}@foreach(var myItem in Model.Members){
    <span>@i</span>i++;}

  相关解决方案