3 回答
TA贡献1874条经验 获得超12个赞
history.pushState
<script type="text/javascript">var stateObj = { foo: "bar" };function change_my_url(){ history.pushState(stateObj, "page 2", "bar.html");}var link = document.getElementById('click');link.addEventListener('click', change_my_url, false);</script>
<a href="#" id='click'>Click to change url to bar.html</a>
history.replaceState
TA贡献1850条经验 获得超11个赞
history.pushState
history.popState
window.location.hash
onhashchange
setInterval
TA贡献1951条经验 获得超3个赞
添加回答
举报