📜  javascript 选项 yes no popup - Javascript 代码示例

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

代码示例1
if (confirm('Are you sure you want to save this thing into the database?')) {
  // Save it!
  console.log('Thing was saved to the database.');
} else {
  // Do nothing!
  console.log('Thing was not saved to the database.');
}