摘要: 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... 阅读全文
posted @ 2013-04-19 20:16 xmlovecss 阅读(602) 评论(1) 推荐(0) 编辑