哈士奇a

导航

2020年6月2日 #

vuex的基本操作

摘要: 1.安装vuex依赖包 npm install vuex --save 2.导入vuex包 import vuex from ‘vuex’ Vue.use(Vuex) 3.创建store对象 const store=new Vuex.Store({ // state 中存放的就是全局共享的数据 st 阅读全文

posted @ 2020-06-02 16:00 哈士奇a 阅读(73) 评论(0) 推荐(1) 编辑