最佳答案:fetch(new Request('url',{method:'POST', headers:{'Content-Type': 'application/x-www-form-urlencoded'
fetch(new Request('url',{
method:'POST',
headers:{'Content-Type': 'application/x-www-form-urlencoded'},
body:"par1=val1&par2=val2"
})).then((resp)=>{console.log(resp)})
按F12,在控制台输入以上格式即可发送POST 请求。