Change browser URL and page content without reload and without using fragments

前端 未结 2 1792
萌比男神i
萌比男神i 2020-12-06 20:06

I\'m well aware of the technique of using URL fragments to track state on an AJAX powered webpage, but lately I\'ve noticed a lot of sites that are doing something similar b

2条回答
  •  -上瘾入骨i
    2020-12-06 20:42

    They are using new HTML5 History API. I think this is what you want. check the menu items in this page http://tinywall.info/demos/html5-history-api/menu1.php

    The tutorial to implement is right here : http://t.co/M4RvnvoQ

提交回复
热议问题