Javascript IE9中的History.pushstate()工作不正常
我想在不重新加载页面的情况下更改浏览器的整个链接 我试着用 window.history.pushState'Object','title',new\uURL 它可以在firefox、chrome、IE11中使用,但我需要它才能在IE9中使用 所以,我试着这样做: 历史。pushState'Object','title',新的urlJavascript IE9中的History.pushstate()工作不正常,javascript,internet-explorer,pushstate,history.js,Javascript,Internet Explorer,Pushstate,History.js,我想在不重新加载页面的情况下更改浏览器的整个链接 我试着用 window.history.pushState'Object','title',new\uURL 它可以在firefox、chrome、IE11中使用,但我需要它才能在IE9中使用 所以,我试着这样做: 历史。pushState'Object','title',新的url 但在IE9中,新的页面url与旧的一致,但我希望它被完全替换 使用绝对路径尝试您的新url。与/prodult/2/prod_new.html类似,请注意IE9中不
但在IE9中,新的页面url与旧的一致,但我希望它被完全替换 使用绝对路径尝试您的新url。与/prodult/2/prod_new.html类似,请注意IE9中不支持pushState,它会给出相同的结果。您的新url是什么?例如,旧链接是:mon_site.com/produit/1/prod1.html,新url='mon_site.com/produit/2/prod_new.html'