3
屬性,所以看起來的Html.ActionLink()
作品很好地與HTML5通過重命名爲下劃線的屬性到屬性與連字符data-
屬性的非泛型重載:使用HTML5「數據 - 」與MVC3和Html.ActionLink <TController>
How to use dashes in HTML-5 data-* attributes in ASP.NET MVC
但是,這似乎不適用於強類型Html.ActionLink<TController>()
。
所以,鏈接,jQuery Mobile的
@(Html.ActionLink<HomeController>(
c => c.Index(),
"Home",
new { data_direction="reverse" }))
給出
<a data_direction="reverse" href="/" class="ui-link">Home</a>
的HTML源代碼是不是我想要的。
任何想法?沒有超載需要RouteValueDictionary
,以便路由不可用。