摘要: 1.vueX 主要是全局定义存储数据,方法的位置 通过方法 来改变数据。 2.安装vueX npm install vuex --save 3. 在新建的store/index.js中 引入文件 import Vuex from 'vuex' Vue.use(Vuex); 4. 在main.js中全 阅读全文
posted @ 2021-09-06 14:18 小猴子会上树 阅读(309) 评论(0) 推荐(0) 编辑