摘要:
const store = new Vuex.Store({ state: { count: 0 }, mutations: { increment (state) { state.count++ } }, actions: { increment (context) { context.commi 阅读全文
posted @ 2021-08-28 10:12
与f
阅读(884)
评论(0)
推荐(0)
摘要:
1.官方解释 Vuex是一个专为Vue.js应用程序开发的状态管理模式。然后Vuex里面有五个特别重要的属性,分别是state,mutations,actions,getters,modules。 2.state 放置状态相关的信息,vue是使用单一状态树的,也就是单一数据源,也就是说我们的stat 阅读全文
posted @ 2021-08-28 09:26
与f
阅读(1045)
评论(0)
推荐(0)

浙公网安备 33010602011771号