单击@Html.ActionLink 两次以上时位置url 发生了什么?
What happened on location url when click @Html.ActionLink more than twice?
根据:
<ul>
<li>@Html.ActionLink("Home", "Index", "Home")</li>
<li>@Html.ActionLink("Device Management", "Index", "DeviceManagement")</li>
</ul>
如果我第一次点击设备管理,位置是:(with ngRoute to "/device" success!)
http://localhost:13060/DeviceManagement#/device
如果我再次点击设备管理,位置是:(ngRoute to "/device" 不能工作!)
http://localhost:13060/DeviceManagement#
为什么点两次上面的@Html.ActionLink,“/device”就消失了?
@Html.ActionLink 发生了什么事?
在这种情况下,它应该使用 angular 路由在客户端 side.Action link 应该修改:
<a href="/#/home">Home</a>
<a href="/#/devicemanagement">Device Management</a>
根据:
<ul>
<li>@Html.ActionLink("Home", "Index", "Home")</li>
<li>@Html.ActionLink("Device Management", "Index", "DeviceManagement")</li>
</ul>
如果我第一次点击设备管理,位置是:(with ngRoute to "/device" success!)
http://localhost:13060/DeviceManagement#/device
如果我再次点击设备管理,位置是:(ngRoute to "/device" 不能工作!)
http://localhost:13060/DeviceManagement#
为什么点两次上面的@Html.ActionLink,“/device”就消失了?
@Html.ActionLink 发生了什么事?
在这种情况下,它应该使用 angular 路由在客户端 side.Action link 应该修改:
<a href="/#/home">Home</a>
<a href="/#/devicemanagement">Device Management</a>