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