Javascript has more recent framework notes that can be broadly divided into the following 3 categories.
One-way binding
Simple and direct. Ajax passes data from the service to viewtemplate for binding. Of course this process can also be done on the server side, and the. NET MVC and Python flask frameworks are all available.
Advantage: The development speed is improved, one-way data flow page can be considered for use.
Disadvantage: The view and model pair are much easier to mess up, but one-on-one words reduce reusability.
Two-way binding
Unlike one-way binding, the model is responsible for notifying the model UI of updates, in addition to passing data from the service to View,view.
Advantage: The speed of development is significantly increased.
Disadvantages: A lot of use, easy to write code chaos, maintainability will be reduced, each two-way binding is an observer mode, there are potential performance problems.
Component Ideas
The main point is Reactjs, which is designed to create reusable UI components that are tasked with maintaining the high cohesion of the component.
Advantage: Reduce the overall software coupling by improving local cohesion. Maintainability is strong.
Disadvantage: The initial development speed is not as fast as the binding method. Too many page components can have potential performance issues.
Conclusion:
Scenarios where two-way binding is considered can be considered instead of using components (REACTJS). Simple page one-way binding (HANDLEBARJS,KNOCKOUTJS), or you can define some reusable UI components.
The UI in general is technically designed to handle one-way bindings + components. As for the use of jquery, a number of factors (technical general architecture selection, team background, etc.) are determined. In short, as long as the components can maintain high cohesion, it is no harm.
http://www.woaipu.com/shops/zuzhuan/61406
Http://www.znds.com/tv-967956-1-1.html
Http://www.znds.com/tv-967958-1-1.html
Javascript MV Framework Comparison