Object instance Vue

. 1  var VM = new new Vue ({ 
2 EL: '# App' , . 3 Data: {}, // data . 4 Methods: {}, // method call . 5 Filters: {}, // private filter . 6 directives: { } // private instruction . 7 component: {}, // private component . 8 . 9 beforeCreate () {} // after initialization instance, be called before the data observed (data observer) and event / watcher event configuration. 10 Created ( ) {} // in the call immediately after the instance is created in this step, the instance has completed the following configuration: the observed data (data observer), the properties and methods of operation, watch / event callback event, however, mount the stage. has not yet begun, $ el property is not currently visible. 11beforeMount () {}, // to be called before mounting the beginning: the first related to the render function is called. 12 Mounted () {}, // can use the 13 the BeforeUpdate () {}, // called when the data is updated occur before the virtual DOM patch. Here for access to existing DOM before updating, such as manually removing event listeners have been added. 14 Updated () {}, // When this hook is called, DOM component has been updated, 15 beforeDestroy () {}, // call instance before destruction. In this step, the instance is still fully available. 16 Destroyed () {} // Vue instance call after destruction. After the call, everything will de-binding indication Vue instance, all event listeners will be removed, all the child instance will be destroyed. . 17 18 is });

 

Guess you like

Origin www.cnblogs.com/ggsddu/p/11415134.html