Skip to content

seawind8888/my-vue2

Repository files navigation

使用vue2.0+vuex2.0+vue-router2.0重构的卖座网

vue2.0 10月初发布正式版了,官方的插件,vuex,vue-router同样升级到2.0了,据说2.0性能比react性能高。

重构过程比较顺利,没什么困难,最主要是生命周期名变更,还有vuex的小变动,可以使用vue-migration-helper帮助升级,有比较友好的提示。

vue2.0如果性能如网上所说的那么快,我建议使用vue,我比较喜欢vue的语法。

vue2.0参考资料

官方文档http://vuejs.org/guide/ 中文翻译http://vuefe.cn/

vue-router2文档 http://router.vuejs.org/zh-cn/index.html

vuex2.0文档 http://vuex.vuejs.org/en/index.html

vue-resourece https://github.com/vuejs/vue-resource

滑动广告插件 https://github.com/surmon-china/vue-awesome-swiper

##演示效果

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# run unit tests
npm run unit

# run e2e tests
npm run e2e

# run all tests
npm test