This is for the record 前端面试的话术集锦第十一篇博文——高频考点(React和Vue两大框架)
and I will keep updating this blog post. ❗❗❗
React
and Vue
should be the hottest front-end framework in China at the moment. Of course, Angular
it is also a good framework, but there are very few people using this product in China, so Angular
the content of the framework chapter will not be covered.
In this chapter, we will learn the following contents
-
MVVM
what is -
Virtual DOM
what is -
How does the front-end route jump?
-
React
Vue
the difference between
1. What is MVVM? What is the difference compared to MVC?
First of all, let’s make it clear that no matter it is React
or Vue
, they are not MVVM
frameworks, they are just MVVM
ideas for reference. Examples are given in the article Vue
to better understand MVVM
the concept.
View
Let’s talk about it next Model
:
-
View
Very simple, it is the view that the user sees -
Model
It’s also very simple, usually it’s local data and data in the database.
Basically, the product we write is to read data from the database through the interface, and then process the data and display it to the view that the user sees.