📅  最后修改于: 2022-03-11 14:59:24.129000             🧑  作者: Mango
fetch('https://example.com/login', {
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
},
body: new URLSearchParams({
'param': 'Some value',
'another_param': 'Another value'
})
})
.then(res => {
// Do stuff with the result
});