Created
October 22, 2014 03:09
-
-
Save ykhs/3db59c4ad4c4604af198 to your computer and use it in GitHub Desktop.
JavaScript養成読本 特集1 第7章 リスト5 訂正
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// js/note_detail.js | |
App.NoteDetailView = Backbone.View.extend({ | |
render: function() { | |
var template = $('#noteDetailView-template').html(); | |
var compiled = _.template(template); | |
var html = compiled(this.model.toJSON()); | |
this.$el.html(html); | |
return this; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment