Vue.js打造一个开源的CNode社区,实现了浏览、发帖、新手入门、api等等功能。css
源代码地址:👉 github.com/yaoyanweb/v…前端
欢迎你们star和fork😄vue
Promise
的 HTTP 库,向后端发起请求。<style lang="scss"></style>
。组件状态多了用Vuex管理很方便,引用 Redux 的做者 Dan Abramov 的话说就是:node
Flux 架构就像眼镜:您自会知道何时须要它。webpack
事先必定要先想好整个页面组成,怎样去分组件开发,这样在开发阶段会事半功倍。git
import moment from 'moment'
Vue.prototype.moment = moment;
给Vue的原型上添加moment,这样就能够在Vue的实例中随意使用它了。源代码地址:👉 GitHubgithub
我的网站:👉 www.yaoweb.cnweb
GitHub:👉 yaoyanwebvue-router
# install dependencies
cnpm 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复制代码