Javascript hashtag navigation

后端 未结 1 2032
误落风尘
误落风尘 2021-02-06 19:19

Currently, I\'m using following function which works with click event.

$(\'a.ux-thumb-wrap\').click(function(e){
    e.preventDefault();
    href=$(this).attr(\'         


        
相关标签:
1条回答
  • 2021-02-06 20:00

    Use the jquery hashchange plugin for a lightweigth approach: http://benalman.com/projects/jquery-hashchange-plugin/

    Even better in the long run is the backbone.js router: http://documentcloud.github.com/backbone/#Router

    0 讨论(0)
提交回复
热议问题