网站首页 网站源码
@model TodayNewsModel @{ Layout = null; } <!DOCTYPE html> <html> <head> <title>today news</title> </head> <body> <div> @foreach (var item in Model.NewsList) { <div>@(Model.NewsList.IndexOf(item) + 1). @item.Title</div> } </div> </body> </html>