vuex2.0 基本使用(2) --- mutation 和 action

  我們的項目非常簡單,當點擊+1按鈕的時候,count 加1,點擊-1按鈕的時候,count 減1. 1, mutation   The only way to actually change state in a Vuex store is by committing a mutation, 在vue 中,只有mutation 才能改變state.  mutation 類似事件,每一個muta
相關文章
相關標籤/搜索