vue-vue-router project
使用vue-cli脚手架工具构建vue项目
请求使用node server
对应的node服务端地址 https://github.com/yangmei123/node-server-express/tree/master
- vue.js (2.0)
- vue-router
- vue-resource
- webpack
- eslint
- es6
- babel
- swiper
# 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
- 请求接口的对应地址和端口配置
this.$http.post('http://localhost:8000/add', data, {emulateJSON: true})
For detailed explanation on how things work, checkout the guide and docs for vue-loader.