vue2.0 10月初发布正式版了,官方的插件,vuex,vue-router同样升级到2.0了,据说2.0性能比react性能高。
重构过程比较顺利,没什么困难,最主要是生命周期名变更,还有vuex的小变动,可以使用vue-migration-helper帮助升级,有比较友好的提示。
vue2.0如果性能如网上所说的那么快,我建议使用vue,我比较喜欢vue的语法。
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
# 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