0

我想改变 ActionLink 像:

@Html.ActionLink("Create New", "Create", null, new { @data-role = "button" })

但它不起作用。是否可以将数据角色分配给 ActionLink?

4

1 回答 1

2

我假设您正在尝试使用 data-dash 属性,对吗?在这种情况下,您应该使用:

@data_role = "button"

代替:

@data-role = "button"

于 2012-07-31T19:51:25.970 回答