Cannot call 'start' of undefined when starting backbone.js history.

后端 未结 8 1057
感情败类
感情败类 2020-12-15 16:30

I get Cannot call \'start\' of undefined when calling...

    Backbone.history.start()

When running some checks Backbone return

相关标签:
8条回答
  • 2020-12-15 17:35

    I hit the same error.

    This happens when you do not make an instance of the router:

    var routerInstance = new blogRouter();
    
    0 讨论(0)
  • 2020-12-15 17:37

    Make sure you include jQuery.js before underscore.js and backbone.js in HTML head.

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