Skip to content

Instantly share code, notes, and snippets.

Last active Mar 9, 2017
What would you like to do?
JavaScript養成読本 特集1 第6章 リスト8 訂正
// js/note_list_item.js
App.NoteListItemView = Backbone.View.extend({
tagName: 'tr',
render: function() {
var template = $('#noteListItemView-template').html();
var compiled = _.template(template);
var html = compiled(this.model.toJSON());
return this;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment