The difference between vue.js and other frameworks: 1. The learning cost of AngularJs is relatively high, while the APIs provided by Vue itself are relatively simple and intuitive; 2. React relies on Virtual DOM [Virtual DOM], and Vue uses DOM template.
The operating environment of this tutorial: Windows 7 system, Vue version 2.9.6, Dell G3 computer. This method is suitable for all brands of computers.
[Related article recommendations: vue.js]
The difference between vue.js and other frameworks:
1. Differences from AngularJS
Augular comes from Google and is currently one of the most popular frameworks, used in complex interactive systems on the PC side. What we usually call AngularJS refers to Angular 2. Angular 1 and Angular 2 can be considered as two different frameworks, which constitute a rewrite of AngularJS (the first version of the framework).
Same points
Both support instructions – built-in instructions and custom instructions
Both support filters – built-in filters and custom filters
support two-way binding
do not support low-end browsers (such as IE6/7/8)
Differences
AngularJs has a higher learning cost, such as the addition of the Dependency Injection feature, while the APIs provided by Vue itself are relatively simple and intuitive .
In terms of performance, AngularJS relies on dirty checking of data, so the more watches, the slower it becomes. Vue uses dependency tracking-based observation and uses asynchronous queue updates, so all data is updated independently.
2. Difference from React
React is a JavaScript library used to build UI components for web applications. React is maintained by Facebook and many leading tech brands use React in their development environments.
Same points
React uses special JSX syntax, Vue also recommends using .vue to write, both need to be compiled and used
The central idea is the same, everything is a component, and component instances can be nested
all provide reasonable hook functions, allowing developers to customize processing needs
There is no built-in functional core package, but it is loaded as a plug-in.
Supports the mixins feature in component development
Difference
React relies on Virtual DOM (virtual DOM), while Vue uses the DOM template. React's virtual DOM performs dirty checks.
Vue provides instructions, filters, etc., which can operate the DOM very conveniently and quickly
Vue virtual dom is different from react virtual dom
What is the difference between vue virtual dom and react virtual dom
virtual DOM is different, vue will track the dependencies of each component , there is no need to re-render the entire component tree.
For React, every time the application state is changed, all components will be re-rendered, so the shouldComponentUpdate life cycle function method is needed in react for control. .
Vue
Vue.js is one of the most discussed and fastest growing JavaScript frameworks. It was created by former Google employee Evan You, who worked on Angular while he was a Google employee. You can consider it successful because of its ability to build attractive UIs using HTML, CSS, and JavaScript. Vue is used by Alibaba, GitLab, Baidu, and is appreciated by developers and designers around the world.
Related free learning recommendations: javascript(Video)
The above is the detailed content of What is the difference between vue.js and other frameworks?. For more information, please follow other related articles on the PHP Chinese website!