我的查看代码:
@for (int i = 1; i < Model.Page + 1; i++)
{
<div class="Page" style="display:inline-table">
@Ajax.ActionLink(i.ToString(CultureInfo.InvariantCulture), Model.ActionName, Model.Controller,
routeValueDictionary,
new AjaxOptions
{
HttpMethod = "POST",
OnSuccess = "OnSuccess",
UpdateTargetId = "Table",
InsertionMode = InsertionMode.Replace
}, new Dictionary<string, object>
{
{"style", "color:red;padding: 10px"}
})
</div>
}
页数:50
如图所示:
有太多了。我希望它们像这样短:
1 2 3 4 5 ... 46 47 48 49 50
他们是否用 jQuery 做到了?
请指导。