Working with single page websites and maintaining state using a URL hash and jQuery

后端 未结 4 1986
孤独总比滥情好
孤独总比滥情好 2020-12-01 06:08

I\'m working on my portfolio, making it entirely jQuery based. So my problem is when you go to a page, then refresh then it will take you to the home page again. So I have t

4条回答
  •  一向
    一向 (楼主)
    2020-12-01 06:21

    Use one of the many history plugins available, e.g. here: http://plugins.jquery.com/project/jquery-history-web-2-0-hashchange-history-remote

提交回复
热议问题