1.getters相当于组件中的computed计算属性 2.不能直接在dom元素中使用 3.可在组件的computed中调用 4.state中的数据,若想实现双向绑定也得在computed中调用 computed:{ num(){ return this.$store.state.num }, count(){ return this.$store.getters.count } },