1
我想用剃刀語法複製下面的HTML:如何將此html轉換爲剃鬚刀?
<a href="index.html" data-description="I Want This Description">Home</a>
我知道我會的鏈接做到這一點:
@Html.ActionLink("Home", "Index", "Home")
我怎麼想補充一點,就是上面的HTML標籤內的信息「data-description =」我要這個描述「」?
[ASP.NET MVC2 Razor -Html.ActionLink with HTML Attribute]的可能重複(http://stackoverflow.com/questions/7962477/asp-net-mvc2-razor-html-actionlink-with-html-attribute ) – Ben