1:react中发起http请求
直接方法中写fetch即可
fetch(url,{
method:‘POST’,
headers:{
‘Accept’:‘application/json,text/plain,/’,
‘Content-Type’:‘application/json’
},
body:JSON.stringify(etoooo)
})
2021-09-02
最新推荐文章于 2021-09-05 18:13:11 发布
1:react中发起http请求
直接方法中写fetch即可
fetch(url,{
method:‘POST’,
headers:{
‘Accept’:‘application/json,text/plain,/’,
‘Content-Type’:‘application/json’
},
body:JSON.stringify(etoooo)
})