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.