Lightweight javascript framework Backbone User Guide _ javascript skills

Source: Internet
Author: User
This article mainly introduces the use guide of the lightweight javascript framework Backbone. For more information, see Backbone, a lightweight javascript Framework Based on Model-View-controller MVC, it can be used to help developers create a single-page Web application. With Backbone, we can use the REST method to minimize data transmission between the client and the server, thus achieving faster and faster Web page updates.

After learning, I thought it was difficult to use Backbone as a mountain. The result was that after two days of learning, there were some new ones, which made people happy.

I sorted out the Learning Record of the entire BackBone in my GIT. Most events have examples and detailed annotations and explanations, combined with require. js. Many of the event methods will be put together;

Backbone case version 1.1.2

Directory:

1. Backbone. Events (Event)

1.1 listenTo. js

1.2 on_off_terg ger_once.js

1.3 other. js

2. Backbone. Mode (model)

1. extend. js

2. escape. js

3. validate. js

The later sections, such as routing, History, and templates, are not written, because I will use this framework now. I guess this framework will not be used for a long time.
Simply put, it is very important to understand the concept of MVC. There are also some convenient tools and methods. It is worth mentioning that the Bankbone plug-in library contains a wide variety of plug-ins, such as Backbone. mutators (Extended prototype object), Backbone. validation (built-in validators), Backbone. chosen (make the set contain different models), Backbone. relational (one-to-many, multi-to-many object relation usage ).. and so on.

It is recommended for mobile terminals. It is of little value to PC terminals. Welcome to my GIT to take the source code away.
Https://github.com/Mrxdh

The above is all the content of this article. I hope you will like it.

Related Article

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.