Objective
Before that, we studied a section of react, but had to admit that the MVVM framework of react, Vue, and so on, was radically different from the original jquery. The difference between them is not only reflected in the framework of the different thinking, but ES5 to ES6 programming language upgrade, as well as the overall construction system of the difference. jquery only represents JS as a supported language for HTML to provide a better experience, and to react era, JS has been his new, HTML even replaced by JSX, become a small part of it. But the difference between them is too big, react system too abstract, in the premise of alone study, study react curve is too steep, had to learn backbone.
Backbone
In fact, although the Bacnbone is no longer popular, but for the first step out of the jquery phase of the front-end, is still a very worthwhile learning framework.
1. It's light and small, easy to learn and can help us get started with the MVC framework faster.
2. It refines the model and separates the data from the view, allowing us to focus more on editing the logic code.
3. It encapsulates the model and view to better integrate the front-end code and make the front-end code more systematic.
As for its shortcomings, there are also many:
1. Too flexible, also brought a lot of inconvenience.
2. The model and view bindings are not further implemented. There is no two-way binding that implements the data, that is, the rendering of the view when the model is updated, and the operation of the view causing the update of the model. This requires that we manually implement data binding in view.
On the Backbone of "Backbone"