vue common method 2

1.mode = 'out-in' to disappear after the first movie came out mode = 'in-out' disappear after the first movie came out

2.:is= 'type' dynamic switching component may be a component type name

3. After the animation finished must call done ()

4.vuex data stored inside the state, if you want to modify data, asynchronous modification on actions inside, mutations are changes to the state to put the synchronization

5. When component calls Actions, the call is dispatch, if the component is called directly mutations commit method invocation

6.vuex calling sequence, assembly or method of triggering dispatch commit, vuex instance receives the distribution data received ctx and dispatch data, in which Actions, with ctx.copmmit trigger mutations, mutation according

Pass over the data modification state

7.localstorage.x = data directly call localstorge

8.mapState for mapping data, mapMutations equivalent mapping mutation, the other is empathy

9.vuex inside getters corresponds vue inside computed, according to which state data, using redundant data can be avoided when calculating getters new data

10. The use of keep-alived it requested data loaded into memory, to avoid repeated load, when using keep-alived will be more out of a life cycle function activated

Guess you like

Origin www.cnblogs.com/ccbest/p/11041238.html