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.
我想知道是否有一种方法可以使用内联跨度在链接旁边呈现 html 链接HTML.ActionLink?
HTML.ActionLink
结果应该是:
<a href="Controller/Action">Test<span></span></a>
现在不行。但是,您可以执行以下操作:
<a href="@Url.Action("action", "controller")">Test<span></span></a>