- 博客(1)
- 收藏
- 关注
原创 vuex使用总结
使用 在 Vue 的单页面应用中使用,需要使用Vue.use(Vuex)调用插件。将其注入到Vue根实例中。 import Vuex from 'vuex' Vue.use(Vuex) const store = new Vuex.Store({ state: { count: 0 }, getter: { doneTodos: (state, getters) => { return state.todos.filter(todo => todo....
2021-07-26 10:42:11
62
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人