Unable to display Todo Collection on the page

后端 未结 1 889
故里飘歌
故里飘歌 2021-01-28 18:36

Iam practising Backbone JS, below is the code Iam tying to display Todo Collection on the page. But iam not understanding what went wrong with the below code and at end displayi

相关标签:
1条回答
  • 2021-01-28 18:59

    The problem is you are appending this which is returned from the view.You have to attach el of view to DOM.

    this.$el.append(todoView.render().el);
    
    0 讨论(0)
提交回复
热议问题