現在有index,order,comment3個頁面。order點擊評論到comment,comment新增評論重定向到order?,F在想要comment重定向到order之后,order后退的時候不能又退回到comment頁面,直接退回到index頁面。jQuery(document).ready(function ($) { if (window.history && window.history.pushState) { window.onpopstate = function () { location.href = "index.aspx"; }; window.history.pushState('forward', null, "order.aspx"); }});在order使用history做的限制,當在其他頁面點擊后退,好像會觸發order頁面的后退事件,直接從其他頁面退回到index了(ps:PC上沒有問題,手機會有該問題出現(微商城))。正確的應該是其他頁面-order-index。求指教。
- 2 回答
- 0 關注
- 624 瀏覽
相關問題推薦
添加回答
舉報
0/150
提交
取消