📌  相关文章
📜  在表格行中传递变量删除按钮节点js express - Javascript代码示例

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

代码示例1

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)
  })