Today I will introduce to you the summary and usage of the front-end js framework. I have summarized 10 front-end framework libraries. Now I will introduce to you the differences and highlights of these framework libraries one by one.
1. Front-end framework library:
1.Zepto.js
Description: Zepto is a lightweight JavaScript## for modern advanced browsers #Library, it has a similar API to jquery. If you can use jquery, then you can also use zepto. I also learned about Zepto through chatting with a Tencent friend, and only had some basic understanding.
2.SUI MobileDescription: SUI Mobile is a UI library developed based on Framework7. It is very lightweight and beautiful. You only need to introduce our CDN file to use it. It is compatible with iOS 6.0+ and Android 4.0+, making it very suitable for developing cross-platform Web Apps. Usage: As you can see, it is used for the development of Web App on the wireless side. 3.Node.JsDescription: Node.js is a Javascript runtime environment (runtime). In fact, it encapsulates the Google V8 engine. The V8 engine executes Javascript very quickly and has very good performance. Node.js optimizes some special use cases and provides alternative APIs to make V8 run better in non-browser environments. Node.js is a platform built on the Chrome JavaScript runtime, which is used to easily build web applications that respond quickly and are easy to expand. Node.js uses an event-driven, non-blocking I/O model to be lightweight and efficient, making it ideal for running data-intensive real-time applications on distributed devices. Simply put, Node.js is JavaScript running on the server side. Node.js is a platform built on the Chrome JavaScript runtime. Node.js is an event-driven I/O server-side JavaScript environment based on Google's V8 engine. The V8 engine executes Javascript very quickly and has very good performance. Purpose:1. RESTful APIThis is the most ideal application scenario for NodeJS. It can handle tens of thousands of connections. It does not have much logic itself and only requires requests. API, just organize the data and return it. It essentially just looks up some values from some database and composes them into a response. Since responses are small amounts of text and inbound requests are small amounts of text, the traffic is not high and a single machine can handle the API needs of even the busiest companies. 2. Unify the UI layer of Web applicationsThe current MVC architecture, in a sense, Web development has two UI layers, one is in the browser we finally see , and the other one is on the server side, responsible for generating and splicing pages. I won’t discuss whether this architecture is good or bad, but there is another practice, the service-oriented architecture, which can better separate the dependencies of the front and back ends. If all key business logic is encapsulated into REST calls, it means that the upper layer only needs to consider how to use these REST interfaces to build specific applications. Those back-end programmers don't have to worry about how specific data is passed from one page to another. They don't have to worry about whether user data updates are obtained asynchronously through Ajax or by refreshing the page. 3. Applications with a large number of Ajax requestsFor example, personalized applications, each user sees a different page, the cache is invalid, and Ajax requests need to be initiated when the page is loaded. NodeJS can Respond to a large number of concurrent requests. In short, NodeJS is suitable for use in scenarios with high concurrency, I/O intensive, and a small amount of business logic. 4.angular.JsDescription: AngularJS[1] was born in 2009, created by Misko Hevery and others, and later acquired by Google. It is an excellent front-end JS framework that has been used in many Google products. AngularJS has many features, the most core ones are: MVVM,Modularization, automated two-way data binding, semantic tags, Dependency Injection and so on.
Purpose: By describing it, we should be able to understand the real purpose of AngularJS, MVVM, modularization, automated two-way data binding, etc. In addition to simple DOM operations, it also reflects the power of Js programming. Of course the application should depend on the occasion. 5.JQuery MobileDescription: Query Mobile is the version of jQuery on mobile phones and tablet devices. jQuery Mobile will not only bring the jQuery core library to mainstream mobile platforms, but also release a complete and unified jQuery mobile UI framework. Supports global mainstream mobile platforms. The jQuery Mobile development team said: We are very excited to develop this project. The mobile Web needs a cross-browser framework to allow developers to develop truly mobile Web sites. Purpose: jQuery Mobile is a framework for creating mobile web applications. jQuery Mobile works on all popular smartphones and tablets. jQuery Mobile uses HTML5 and CSS3 to lay out pages with as few scripts as possible. 6.requirejsDescription: The goal of RequireJS is to encourage modularization of code. It uses a different approach than traditional<script> script loading step for tags. You can use it to speed up and optimize code, but its main purpose is to modularize the code. It is encouraged to use the module ID instead of the URL address when using scripts. </script>
RequireJS loads all code with an address relative to baseUrl. The top-level <script> tag of the page contains a special attribute data-main, which is used by require.js to start the script loading process, and baseUrl is generally set to the directory consistent with this attribute. </script>
Purpose: Modular dynamic loading.
7.Vue.js
Description: Vue.js is a library for building interactive web interfaces. It provides MVVM data binding and a composable component system with a simple, flexible API. Technically speaking, Vue.js focuses on the view model layer on the MVVM pattern and connects the view and model through two-way data binding. The actual DOM manipulation and output formatting are abstracted away into directives and filters. Compared to other MVVM frameworks, Vue.js is easier to get started with.
8.backbone.js
Description: Backbone provides a structure for models, collections, and views for complex Javascript applications. The model is used to bind key-value data and custom events; the collection is attached with a rich API of enumerable functions; the view can declare event processing functions and connect to the application through the RESTful JSON interface.
9.React
Description: React is a JavaScript library used by Facebook and Instagram to create user interfaces. Many people think of React as the V (view) in MVC. We created React to solve a problem: building large-scale applications where data changes over time. To achieve this goal, React adopts the following two main ideas.
10.Ionic
Description: Ionic is both a CSS framework and a Javascript UI library. Many components require Javascript to work their magic, although often components require no coding and are easy to use via framework extensions, like our AngularIonic extension.
Ionic follows the view control pattern, and its popular understanding is similar to the Cocoa touch framework. In view control pattern, we divide different parts of the interface into subviews or subviews that contain other viewsController. The view controller then "drives" the inner view to provide interaction and UI functionality. A good example of this is the Tab Bar view controller that handles clicking the tab bar to switch between a series of visual panels.
Browse our API documentation to learn about view controllers and the Javascript utilities available in Ionic.
Ionic is currently the most promising HTML5 mobile application development framework. Build applications with SASS, which provides many UI components to help developers develop powerful applications. It uses JavaScript MVVM framework and AngularJS to enhance the application. Provides two-way binding of data, making its use a common choice for web and mobile developers.
# I believe you have mastered the methods after reading these cases. For more exciting information, please pay attention to other related articles on the php Chinese website!
Related reading:
Implementation steps of DOM programming in html5
Using h5 to make WeChat payment process Implementation steps
#Use canvas to make a clock implementation steps
The above is the detailed content of Summary of front-end js framework and explanation of its uses. For more information, please follow other related articles on the PHP Chinese website!

JavaScript core data types are consistent in browsers and Node.js, but are handled differently from the extra types. 1) The global object is window in the browser and global in Node.js. 2) Node.js' unique Buffer object, used to process binary data. 3) There are also differences in performance and time processing, and the code needs to be adjusted according to the environment.

JavaScriptusestwotypesofcomments:single-line(//)andmulti-line(//).1)Use//forquicknotesorsingle-lineexplanations.2)Use//forlongerexplanationsorcommentingoutblocksofcode.Commentsshouldexplainthe'why',notthe'what',andbeplacedabovetherelevantcodeforclari

The main difference between Python and JavaScript is the type system and application scenarios. 1. Python uses dynamic types, suitable for scientific computing and data analysis. 2. JavaScript adopts weak types and is widely used in front-end and full-stack development. The two have their own advantages in asynchronous programming and performance optimization, and should be decided according to project requirements when choosing.

Whether to choose Python or JavaScript depends on the project type: 1) Choose Python for data science and automation tasks; 2) Choose JavaScript for front-end and full-stack development. Python is favored for its powerful library in data processing and automation, while JavaScript is indispensable for its advantages in web interaction and full-stack development.

Python and JavaScript each have their own advantages, and the choice depends on project needs and personal preferences. 1. Python is easy to learn, with concise syntax, suitable for data science and back-end development, but has a slow execution speed. 2. JavaScript is everywhere in front-end development and has strong asynchronous programming capabilities. Node.js makes it suitable for full-stack development, but the syntax may be complex and error-prone.

JavaScriptisnotbuiltonCorC ;it'saninterpretedlanguagethatrunsonenginesoftenwritteninC .1)JavaScriptwasdesignedasalightweight,interpretedlanguageforwebbrowsers.2)EnginesevolvedfromsimpleinterpreterstoJITcompilers,typicallyinC ,improvingperformance.

JavaScript can be used for front-end and back-end development. The front-end enhances the user experience through DOM operations, and the back-end handles server tasks through Node.js. 1. Front-end example: Change the content of the web page text. 2. Backend example: Create a Node.js server.

Choosing Python or JavaScript should be based on career development, learning curve and ecosystem: 1) Career development: Python is suitable for data science and back-end development, while JavaScript is suitable for front-end and full-stack development. 2) Learning curve: Python syntax is concise and suitable for beginners; JavaScript syntax is flexible. 3) Ecosystem: Python has rich scientific computing libraries, and JavaScript has a powerful front-end framework.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

SublimeText3 Chinese version
Chinese version, very easy to use

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

Zend Studio 13.0.1
Powerful PHP integrated development environment

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool
