Vue instance object (III)

First, create an instance of Vue

Each application Vue is by creating a new instance of Vue Vue function begins with:

var VM = new new Vue ({
   // Options 
})

When you create a Vue instance, you can pass an options object. These options can be used to represent the behavior you want.

Second, the data and methods

When a Vue instance is created, all properties it is added to the data object in response to the systems Vue. When the values ​​of these properties change, the view will produce a "response" that is updated to a new value matching.

 

Guess you like

Origin www.cnblogs.com/myitnews/p/11641695.html