您的位置:首页 > 移动开发 > IOS开发

axios post、get 请求参数和headers配置

2019-03-29 20:40 1871 查看

axios.post("http://xxx.com/xxx/xxx/xxx?",
{
'queslistid':this.kemuid
},
{
headers: {'token':Cookies.get('token'),'platform': 'web'}
}
).then((login)=>{
console.log(login)
})

axios.get("http://xxx.com/xxx/xxx/xxx?",{
params:{id:this.kemuid},
headers:{token:Cookies.get('token'), platform: 'web'}
}).then((res)=>{
console.log(res)
})
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐