window.fetch发送http请求
const response = await window.fetch(url,{
method:'post',
body:body,
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
}
})
if (response.ok) {
const res = await response.json();
}
浙公网安备 33010602011771号