axios post提交的Content-Type设置

import axios from 'axios';
let baseURL='http://192.168.1.1:8000/user/login';

var data = {age: 18};

axios.post(baseURL,data,

{headers: {'Content-Type': 'application/x-www-form-urlencoded'}}

).then(result => {

// do something

})

 

展开阅读全文

没有更多推荐了,返回首页