Asp.net MVC 中现在列表中添加一列序号可以怎么处理呢?
controller里返回数据时:
db.table.Select((x,i)=>new{index=i+1});
依葫芦画瓢:int i = 0;foreach (var item in Model){
}