会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
oxy blogs
吾生也有涯,而知也无涯
博客园
首页
新随笔
联系
订阅
管理
Vue2-vuex
来源:
Vue社区
Vue官网
语法
state 用于存储数据
mutations 用户存改变state的方法
暴露变量:
const store = new Vuex.Store({ state, mutations });
注册到实例
this.$store. this.$store.commit();
作者:
oxy-blogs
出处:
https://www.cnblogs.com/oxy-blogs/p/14817637.html
声明:
文章如有问题请联系本人,侵权必删,欢迎转载,但请标明作者与出处
posted @
2021-05-27 14:06
oxy-blogs
阅读(
27
) 评论(
0
)
编辑
收藏
举报
刷新页面
返回顶部
公告