BACKBONE
BACKBONE
zhexiao27
Keep going.
展开
-
2.View学习(Backbone Tutorials)
What is a view?Backbone views are used to reflect what your applications' data models look like. They are also used to listen to events and react accordingly. This tutorial will not be addressing ho原创 2013-05-05 14:46:30 · 717 阅读 · 0 评论 -
6.Backbone Events学习(Official Tutorials)
onobject.on(event, callback, [context])Alias: bind Bind a callback function to an object. The callback will be invoked whenever the event is fired. If you have a large number of different events原创 2013-05-08 23:21:26 · 835 阅读 · 0 评论 -
5.View学习(Official Tutorials)
you can bind your view's render function to the model's "change" event — and now everywhere that model data is displayed in the UI, it is always immediately up to date.extendBackbone.View.exte原创 2013-05-08 03:01:21 · 654 阅读 · 0 评论 -
3.Collection学习(Official Tutorials)
Collections are ordered sets of models. You can bind "change" events to be notified when any model in the collection has been modified, listen for "add" and "remove"events, fetch the collection fr原创 2013-05-06 23:54:31 · 531 阅读 · 0 评论 -
1.Model学习(Official Tutorials)
Models are the heart of any JavaScript application, containing the interactive data as well as a large part of the logic surrounding it: conversions, validations, computed properties, and access con原创 2013-05-06 23:12:53 · 793 阅读 · 0 评论 -
4.Collection Underscore Methods(Official Tutorials)
Backbone proxies to Underscore.js to provide 28 iteration functions onBackbone.Collection. They aren't all documented here, but you can take a look at the Underscore documentation for the full det原创 2013-05-07 02:31:16 · 639 阅读 · 0 评论 -
2.Model Underscore Methods(Official Tutorials)
Underscore.js to provide 6 object functions onBackbone.Model. They aren't all documented here, but you can take a look at the Underscore documentation for the full details…validatemodel.valida原创 2013-05-06 23:14:12 · 642 阅读 · 0 评论 -
3.Collection学习(Backbone Tutorials)
Backbone collections are simply an ordered set of models. Such that it can be used in situations such as:Model: Student, Collection: ClassStudentsModel: Todo Item, Collection: Todo ListModel: An原创 2013-05-05 22:11:00 · 532 阅读 · 0 评论 -
1.Model学习(Backbone Tutorials)
1.Install BackboneBackbone's only hard dependency is Underscore.js ( >= 1.4.3). For RESTful persistence, history support via Backbone.Router and DOM manipulation with Backbone.View, include json2.js原创 2013-05-05 12:34:56 · 745 阅读 · 0 评论 -
7.Backbone Router、History、Sync(Official Tutorials)
Backbone.RouterWeb applications often provide linkable, bookmarkable, shareable URLs for important locations in the app. Until recently, hash fragments (#page) were used to provide these permalink原创 2013-05-09 04:52:14 · 1182 阅读 · 0 评论