Home>Article>Web Front-end> What are the mvc frameworks for javascript?

What are the mvc frameworks for javascript?

青灯夜游
青灯夜游 Original
2021-04-09 18:33:10 3260browse

JavaScript MVC frameworks include: Backbone.js, SproutCore, Sammy.js, Cappuccino, Knockout.js, GWT, Google Closure, Ember.js, Angular, Batman.js, etc.

What are the mvc frameworks for javascript?

The operating environment of this tutorial: windows7 system, javascript version 1.8.5, Dell G3 computer.

JavaScript MVC Framework:

  • Backbone.js - Pros: Strong community, strong momentum; Cons: Weak abstraction, many Functions need to be added urgently.

  • SproutCore - Advantages: Support for binding, reliable community, large number of features; Disadvantages: Over-specification, difficult to decouple from unnecessary features.

  • Sammy.js - Advantages: Easy to learn and easier to integrate with existing server-side applications; Disadvantages: Too simple to be used in large applications.

  • Spine.js - Advantages: lightweight, well-documented; Disadvantages: Its core concept "spine" is an asynchronous user interface, which means that the ideal user interface is always A blockage will not occur and this foundation is defective.

  • Cappuccino - Pros: Large well-thought-out framework, good community, great inheritance model; Cons: Created by iOS developers, using JavaScript to emulate Objective-C.

  • Knockout.js - Advantages: Support for binding, complete documentation and tutorials; Disadvantages: Poor binding syntax, lack of unified view component hierarchy.

  • Javascript MVC - Advantages: Reliable community; Disadvantages: Poor string-based inheritance model, too close relationship between controller and view and lack of binding.

  • GWT (Google Web Toolkit) - Advantages: comprehensive framework, good community, reliable Java-based component inheritance model; Disadvantages: may not withstand the test of time, in addition, Java's abstraction on the client side is a bit clunky.

  • Google Closure——Advantages: Very good component-based UI composition system. Disadvantages: Lack of UI binding support.

  • Ember.js - Advantages: Very rich template system, with composite views and UI binding; Disadvantages: Relatively new, documentation is not complete.

  • Angular.js - Advantages: Good consideration of template scope and controller design, has a dependency injection system, and supports rich UI binding syntax. Disadvantages: The modularity of the code is not strong, and the modularity of the view is not enough.

  • Batman.js——Advantages: clear code, simple binding and persistence methods; disadvantages: singleton controller is used.

[Recommended learning:javascript advanced tutorial]

The above is the detailed content of What are the mvc frameworks for javascript?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn