Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
查看 msdn(UrlHelper.Route,UrlHelper.Link),它们看起来完全一样。有任何理由使用其中一个吗?
Route()返回一个相对 URI,Link()一个绝对的。
Route()
Link()
来源:GitHub。Link()前Request.RequestUri置于Route().
Request.RequestUri