axios()
axios({
method: 'post',
url: "https://autumnfish.cn/api/user/reg",
data:{
username:'jack'
}
})
.then(function (response) {
console.log('one1======='+response.data);
console.log(response)
});
axios()
axios({
method: 'post',
baseURL:'https://autumnfish.cn',
url: "/api/user/reg",
data:{
username:'jack'
}
})
.then(function (response) {
console.log('one2======='+response.data);
console.log(response)
});
axios.post()
axios.post('https://autumnfish.cn/api/user/reg',{
username:'jack'
})
.then(function (response) {
console.log('one3======='+response.data);
console.log(response)
});
axios.post()
axios.defaults.baseURL = 'https://autumnfish.cn'
axios.post('/api/user/reg',{
username:'jack'
})
.then(function (response) {
console.log('one4======='+response.data);
console.log(response)
});
网友评论