您好我想从Mvc Controller返回一个锚点
控制器名称= DefaultController;
public ActionResult MyAction(int id)
{
return RedirectToAction("Index", "region")
}
Run Code Online (Sandbox Code Playgroud)
这样,当指向索引时,url是
http://localhost/Default/#region
Run Code Online (Sandbox Code Playgroud)
以便
<a href=#region>the content should be focus here</a>
Run Code Online (Sandbox Code Playgroud)
我不是问你是否可以这样做:我如何在我的URL中添加锚标记?