会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Sherwin
首页
管理
2022年11月7日
vuex的使用
摘要: 概念 状态管理器,存取数据用的,可以跨组件通信(屏蔽了组件的父子关系) 定义store //store/index.js import { createStore } from "vuex"; const store = createStore({ state:{ // 存数据的地方 count:0
阅读全文
posted @ 2022-11-07 15:45 Sherwin_szw
阅读(81)
评论(0)
推荐(0)
编辑