axios get和post請求帶參數和headers配置

post請求javascript const id = 'xxx'; const token = 'xxxxxxxxxxxxxxxxx'; axios.post("http://xxx/xxx", //參數列表 { 'id': id }, //請求頭配置 { headers: {'token':token } } ).then((r
相關文章
相關標籤/搜索