Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
JavaScript養成読本 特集1 第4章 リストA 訂正
var ContactView = Backbone.View.extend({
template: '<div>Name: <%= firstName %> <%= lastName %></div>' +
'<div>Email: <%= email %></div>',
render: function() {
var compiled = _.template(this.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