Backbone is a lightweight JavaScript framework based on the model-view-controller MVC pattern that can be used to help developers create single-page Web applications. With backbone, we can use rest to minimize data transfer between the client and the server, enabling faster accelerated Web page updates.
Can calm down to study, previously thought Backbone is a mountain to use up hard, the result just learned 2 days there are some new, really make people happy.
I tidied up the whole backbone learning record in my git, most events have examples and have detailed annotations and explanations, combined with require.js, where many of the event methods are put together;
Backbone Case Version 1.1.2
Directory:
1.backbone.events (Event)
1.1 Listento.js
1.2 On_off_tergger_once.js
1.3 Other.js
2.backbone.mode (model)
1.extend.js
2.escape.js
3.validate.js
The following, such as routing, History, templates are not written, because this time I will use this framework, I think for a long time will not use this framework.
In simple terms, it's important to understand the pattern concept of MVC, and there are some handy tools, and it's worth mentioning that the Bankbone plug-in library is rich in a variety of things, such as: Backbone.mutators (extended Prototype object), Backbone.validation ( Built-in validators, Backbone.chosen (so that the collection contains different models), Backbone.relational (One-to-many, Many-to-many, multiple-Object relational usage) ... Wait a minute
Recommended mobile end use, PC end use words feel no value, welcome to my git to rob the source
Https://github.com/Mrxdh
The above mentioned is the entire content of this article, I hope you can enjoy