Backbone.js cause bug only in IE7

后端 未结 4 1938
隐瞒了意图╮
隐瞒了意图╮ 2020-12-15 11:44

I\'m developping a web app with CodeIgniter on back-end and Backbone.js on front-end. I\'m also using HTML5 Boilerplate as my start template.

I\'m using Backbone\'s

4条回答
  •  旧时难觅i
    2020-12-15 12:26

    The solution that I found to work was to use Ben Alman's hashchange plugin. Go to the start function in Backbone.History and replace the code of the start function with this.

    start : function() {
        $(window).hashchange(this.checkUrl);
        return this.loadUrl();
    }
    

    And be sure to include the hashchange plugin file in your code.

提交回复
热议问题