Collection of front-end interview skills Part 11: High-frequency test points (two major frameworks: React and Vue)

This is for the record 前端面试的话术集锦第十一篇博文——高频考点(React和Vue两大框架)and I will keep updating this blog post. ❗❗❗

Reactand Vueshould be the hottest front-end framework in China at the moment. Of course, Angularit is also a good framework, but there are very few people using this product in China, so Angularthe content of the framework chapter will not be covered.

In this chapter, we will learn the following contents

  1. MVVMwhat is

  2. Virtual DOMwhat is

  3. How does the front-end route jump?

  4. ReactVuethe 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 Reactor Vue, they are not MVVMframeworks, they are just MVVMideas for reference. Examples are given in the article Vueto better understand MVVMthe concept.

ViewLet’s talk about it next Model:

  1. ViewVery simple, it is the view that the user sees

  2. ModelIt’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.

Guess you like

Origin blog.csdn.net/lvoelife/article/details/132692567