📅  最后修改于: 2022-03-11 15:04:25.158000             🧑  作者: Mango
function deleting(value){
fetch('/delete', { method: 'POST', data: {buttonId: value} })
.then(function (response) {
if (response.ok) {
console.log('Delete was recorded')
return
}
throw new Error('Request failed.')
})
.catch(function (error) {
console.log(error)
})