📜  js fetch delete - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:11.590000             🧑  作者: Mango

代码示例1
fetch('https://example.com/delete', {
  method: 'DELETE'
})
  .then(res => res.json())
  .then(data => {
    // Do some stuff...
  })
  .catch(err => console.log(err));