摘要:
1、安装vuex依赖包 npm install vuex --save 2、导入vuex包 import Vuex from 'vuex' Vue.use(Vuex) 3、创建 store 对象 export default new Vuex.Store({ // state 中存放的就是全局共享的 阅读全文
posted @ 2020-04-29 17:20
JoeYoung
阅读(11148)
评论(2)
推荐(2)
摘要:
ES6原生语法中提供了非常多好用的数组'遍历'方法给我们(forEach,every,some,map,filter,reduce,reduceRight,indexOf,lastIndexOf),让我们可以实现更多更强大的功能,下面让我们通过这篇文章好好学习下,该如何使用它们。 forEach 对 阅读全文
posted @ 2020-04-29 14:02
JoeYoung
阅读(1686)
评论(0)
推荐(0)
浙公网安备 33010602011771号