[英]History.pushstate() in IE9 not working correctly
我想在不重新加載頁面的情況下更改瀏覽器的整個鏈接。
我嘗試使用
window.history.pushState('Object', 'title', new_url);
它可以在Firefox,Chrome,IE11中使用,但我需要在IE9中使用。
因此,我嘗試使用History.js這樣:
History.pushState('Object', 'title', new_url) ;
但是在IE9中,新的頁面網址已與舊的網址相對應,但是我希望將其完全替換!
嘗試使用絕對路徑的new_url。 類似於/prodult/2/prod_new.html
,請注意IE9不支持pushState
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.