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

post请求javascript const id = 'xxx'; const token = 'xxxxxxxxxxxxxxxxx'; axios.post("http://xxx/xxx", //参数列表 { 'id': id }, //请求头配置 { headers: {'token':token } } ).then((r
相关文章
相关标签/搜索