📅  最后修改于: 2022-03-11 15:02:11.590000             🧑  作者: Mango
fetch('https://example.com/delete', {
method: 'DELETE'
})
.then(res => res.json())
.then(data => {
// Do some stuff...
})
.catch(err => console.log(err));