1》、mutation 中的方法通过commit 调用,不传参数使用: export default new Vuex.Store({ state:{ count:2, }, mutations:{ incrs(state){ // count 加1 ...
確定! 回上一頁