Lightweight JavaScript Framework backbone use guide _javascript tips

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.