Slide 41
Slide 41 text
var ListView = Backbone.View.extend({
initialize: function() {
this.collection.on('add', this.onAdd);
this.collection.on('change', this.onChange);
this.collection.on('destroy', this.onRemove);
},
onAdd: function() { /* Ճͷॲཧ */ },
onChange: function() { /* มߋͷॲཧ */ },
onDestroy: function() { /* আͷॲཧ */ }
});
1. ඞཁͳ෦͚ͩ࠶ඳը