jQueryAjax返回按钮,用于在搜索页面上返回搜索结果
我正在进行高级搜索。。从这里开始,搜索结果显示列表 从清单中,我将进入详细信息页面,我想在其中添加后退按钮,单击它将返回到我的搜索结果页面。。。它是如何实现的 我尝试过hashchange,但没有成功。。。我认为散列更改取决于div,而不是不同的页面。。我应该如何使用搜索结果返回按钮jQueryAjax返回按钮,用于在搜索页面上返回搜索结果,jquery,asp.net-mvc-4,back,Jquery,Asp.net Mvc 4,Back,我正在进行高级搜索。。从这里开始,搜索结果显示列表 从清单中,我将进入详细信息页面,我想在其中添加后退按钮,单击它将返回到我的搜索结果页面。。。它是如何实现的 我尝试过hashchange,但没有成功。。。我认为散列更改取决于div,而不是不同的页面。。我应该如何使用搜索结果返回按钮 function goBack() { alert(location.hash); // Bind the event. $(window).hashchange(function () {
function goBack()
{
alert(location.hash);
// Bind the event.
$(window).hashchange(function () {
// Alerts every time the hash changes!
alert(location.hash);
})
// Trigger the event (useful on page load).
$(window).hashchange();
}
问候试试看
function goBack()
{
window.history.back()
}
hashchange是jquery?window.history.back()中的函数,不能保留搜索条件。。我想使搜索结果与我按“后退”按钮时的结果相同?