摘要:
this.store.getters.gettersCount访问store.js的getters actions: 即使用dispatch分发调用actions内的方法,再调用mutations的方法 转载 自https://blog.csdn.net/qq_26641781/article/de 阅读全文
摘要:
1. 安装esLint + prettier 2. 设置 "prettier.eslintIntegration": true 然后使用shift+alt+f的方式格式化代码 阅读全文
摘要:
简述是用this.$store.mutations.xxx(xx)方式调用,因从未见过此种调用方式,回来就搜索了一下,查询结果如下 首先前文: 获取 state 的方式有两种,分别是 this.$store.state.num 这种直接获取的方式,以及通过 getter 定义的方式获取 this.$ 阅读全文
摘要:
熟悉的面试题 首先, map接受两个参数, 一个回调函数 callback, 一个回调函数的this值 其中回调函数接受三个参数 currentValue, index, arrary; 而题目中, map只传入了回调函数--parseInt. 其次, parseInt 只接受两个两个参数 stri 阅读全文