Data driven by vue

1. What is data-driven?

data driven

Use data to drive page changes. When the data changes, the content on the page also changes

In the data-driven development mode, developers are more concerned about how data flows and how data changes, instead of operating elements through code. The development process is more concise, and the code is more concise and specific.

So how does vuejs realize this data-driven?
Here we need to talk about the MVVM design pattern
MVVM mainly includes 3 parts: model, view and viewmodel.
Model: refers to the data part
View: refers to the view part, the corresponding front end is the dom
Viewmodel: it is the middleware that connects the view and the data

Model and View cannot communicate directly, but need to communicate with each other through ViewModel. viewModel is equivalent to an observer, monitoring the dynamics of both parties at any time, and giving the other party a response operation in a timely manner.


Summarize

Tip: Here is a summary of the article:
For example: the above is what I will talk about today. This article only briefly introduces the use of pandas, and pandas provides a large number of functions and methods that allow us to process data quickly and easily.

Guess you like

Origin blog.csdn.net/yjnain3066/article/details/127607421