我希望在展示之前显示帖子中的页数,
帖子的链接 和链接1-2-3
的评论页数我使用nuget PagedList
答案 0 :(得分:0)
来自文档:
<h3>Page Numbers Only</h3>
@Html.PagedListPager((IPagedList)ViewBag.OnePageOfProducts,
page => Url.Action("Index", new { page = page }),
PagedListRenderOptions.PageNumbersOnly)