learn vuex base
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report
For a detailed explanation on how things work, check out the guide and docs for vue-loader.
官方案例: https://github.com/vuejs/vuex/tree/dev/examples/shopping-cart
视频地址教程: 链接:http://pan.baidu.com/s/1b5n3ki 密码:6pq0
【vuex入门系列01】实战操作加减法案例对vuex感知 https://segmentfault.com/a/1190000011525583
【vuex入门系列02】mutation接收单个参数和多个参数 https://segmentfault.com/a/1190000011528501
【vuex入门系列03】实战案例:利用dispatch提交actions解决异步问题 https://segmentfault.com/a/1190000011528052