摘要:
1 (function($){ 2 // 每个新增的item 3 var Item = Backbone.Model.extend({ 4 defaults: { 5 part1: 'hello', 6 part2: 'world' 7 } 8 }); 9 10 var List = Backbone.Collection.extend({11 model: Item12 });13 // 每个item html渲染14 var ItemView = Backbone.View.extend({15 ta... 阅读全文