Javascript MV Framework Comparison

Source: Internet
Author: User

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

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.