1, MVVM

M(model) : Data object, data data.

V(View) : attempt, is the template page, used to display data.

VM(ViewModel) : is an instance (object) of vUE.

Such as:

const vm = new Vue({

el: "app",

data: {

message: "hello"

}

})

The VM function:

Data binding: Bind the Model data to the View page.

(2) DOM monitoring: monitor whether the data changes. If the data in memory changes, the page also changes. As the data on the page changes, so does the data in memory.

Summary: VM displays M dynamically on V