backbone.js: accessing a property on deeplinked page
问题 I am working on an example using a router to switch to a new view. In this example the view's render function is using a console.log to successfully outputs the attributes, including the id, but the template does not display the id. I have tried to only put the relevant sections of the application here. var DetailView = Backbone.View.extend({ el: $('body'), template: _.template('this is detailview for <% id %><a href="index.htm">back</a>'), render: function(id){ var attributes = this.model