github UI如何在没有回发的情况下导航目录?

Yar*_*rin 5 html javascript navigation url query-string

github.com上浏览我的repo目录时,我注意到它使用很酷的javascript效果在目录视图之间切换而不会导致回发,但是url改变了很好且RESTful:http://../tree/master/dir7- > http://../tree/master/dir7/dir4.

每当我必须使用javascript跟踪导航时,我总是不得不求助于地址栏中的哈希参数. http://...page#new-javascript-location

他们是如何做到的呢?