我有以下操作链接
Html.ActionLink("Home", "Index", "Home", New With {.class = "tab"})
但它会在地址栏中创建以下链接 http://localhost:1028/?Length=4 与我所期望的相反 http://localhost:1028/Home .
我做错什么事了吗?
你用的是错误的ActionLink过载。尝试:
Html.ActionLink("Home", "Index", "Home", Nothing, New With {.class = "tab"})
…希望我的vb语法正确…