Vuex
1 new Vuex.Store 创建了一个Vue实例。承载state,commit, dispatch方法 2 Store{} 继承了 mutations actions getters 调用底层的commit方法。 3 store最终传递个入口Vue 使所有组件可以调用this.$store.state….this.$store.dispatch等方法
Be the first to know when I post cool stuff
Subscribe to get my latest posts by email.
Thanks for signing up! Check your email to confirm your subscription.
Whoops, we weren't able to process your signup.