fetch(new Request('url',{
method:'POST',
headers: {'Content-Type': 'application/x-www-form-urlencoded'},
body:"param1=value1¶m2=value2"
})).then((resp)=>{console.log(resp)})
按F12,在控制台输入以上格式即可发送POST 请求。
fetch(new Request('url',{
method:'POST',
headers: {'Content-Type': 'application/x-www-form-urlencoded'},
body:"param1=value1¶m2=value2"
})).then((resp)=>{console.log(resp)})
按F12,在控制台输入以上格式即可发送POST 请求。