1、Content-Type: application/json
let data = {“username”:“11111”,“password”:“22222”};
axios.post(“地址”,data)
2、Content-Type:multipart/form-data
let data = new FormData();
data.append(‘username’,‘11111’);
data.append(‘password’,‘22222’);
axios.post(“地址”,data)
3、Content-Type: application/x-www-form-urlencoded
import qs from ‘Qs’
let data = {“username”:“11111”,“password”:“22222”};
axios.post(“地址”,qs.stringify(
data
))