我有一个显示缩略图列表的简单页面,
我想添加一个寻呼机,我添加了两个操作链接
<li class="ui-pagination-next">@Html.ActionLink("Next", "Paginate", "Home", new { nbSkip = ViewBag.nextSkip }, null)</li>
当我点击链接时,我被重定向到
http://localhost:41626/#/Home/Paginate?nbSkip=60
代替
http://localhost:41626/Home/Paginate?nbSkip=60 ,
有谁知道为什么将“#”字符添加到 URL 中?
路线配置:
public class RouteConfig
{
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
);
}
}