我已经为此苦苦挣扎了几天,我想我会把它放在那里,看看是否有人可以提供帮助。我有一个 MVC4 应用程序,我正在使用 JQuery 选项卡作为菜单。我通过将部分视图返回到选项卡来实现这一点。问题是我没有浏览器历史记录,也没有维护 MVC RESTful 页面“{controller}/{action}/{id}” 谁能帮我弄清楚是否有办法根据什么来更改 URL选项卡被点击?
<div id="tabs">
<ul>
<li>@Html.ActionLink("Household Info", "Info", "HouseholdFees", null, new { title = "HouseholdInfo" })</li>
<li>@Html.ActionLink("Household Management", "Management", "HouseholdFees", null, new { title = "HouseholdManagement" })</li>
<li>@Html.ActionLink("Household Approval", "Approval", "HouseholdFees", null, new { title = "HouseholdApproval" })</li>
<li>@Html.ActionLink("Household Administration", "Index", "HouseholdFeesAdministration", null, new { title = "HouseholdAdministration" })</li>
</ul>
</div>
和
$("#tabs").tabs({
cache: false,
spinner: 'Loading task...',
beforeLoad: function(event, ui) {
ui.jqXHR.error(function() {
ui.panel.html(
"Loading...");
});
},
collapsible: false
});