作者:刘哥2502908157 | 来源:互联网 | 2023-01-28 17:51
HowdoIchangethebrowserURL(orURI)withoutapagerefreshusingHTML5andHTML5ShivforIE?Fo
How do I change the browser URL (or URI) without a page refresh using HTML5 and HTML5Shiv for IE? For instance if I am on the page http://www.example.com and I want to go to http://www.example.com/4f6gt without having to reload the page. I understand how to load the content with AJAX, I have been using AJAX for a while now, but I am new to the HTML5 point of view for this. The reason I wanna do this is because I wanna be able to have people navigate pages without the time it takes to reload the DOM of the main page, but have a deep link that they can also go to so they have a one step way to get back. Thanks!!
如何更改浏览器URL(或URI)而不使用HTML5和HTML5Shiv进行页面刷新?例如,如果我在页面http://www.example.com上,我想访问http://www.example.com/4f6gt,而不需要重新加载页面。我知道如何使用AJAX加载内容,我已经使用AJAX有一段时间了,但我对HTML5的观点并不熟悉。我想这样做的原因是我想能够让人们浏览页面没有时间重新加载DOM的主要页面,但有深刻的联系,他们也可以去有一步的方式回来。谢谢! !
1 个解决方案