e_e
- 浏览: 83900 次
- 性别:
- 来自: 上海
社区版块
- ( 0)
- ( 0)
- ( 0)
最新评论
文章列表
1.main.js 引入axios
import axios from 'axios';
vue.prototype.$http = axios;
2. 发起post请求
methods: submitform:function(){
this.$http.get("/user/find?id=1").then(r=> console.log(r.data));
this.$http.defaults.headers.post['content-type']='application/json;charse ...
- 2018-10-18 09:27
- 浏览 2191
- 分类:web前端