1.基本結構及讀取state中的數據
2.子組件讀取全局的state(注意slot的用法)
3.mutations修改狀態,傳入的參數爲state,mutations對應的是methods,commit中爲事件名稱
4.mapState的使用
5.mapMutations的使用1
6.actions的異步操作(傳的參數爲store)
7.mapMutations的使用2
8.mapActions的使用
9.加料篇
mapState起別名的用法(countMax是爲組件起的一個別名,count是store實例中定義的count)