📜  sweetalert2 cdn - Html 代码示例

📅  最后修改于: 2022-03-11 14:53:12.376000             🧑  作者: Mango

代码示例4
swal({
  title: "Are you sure?",
  text: "Your will not be able to recover this imaginary file!",
  type: "danger",
  showCancelButton: true,
  confirmButtonClass: "btn-danger",
  confirmButtonText: "Yes, delete it!",
  closeOnConfirm: false
},
function(){
  swal("Deleted!", "Your imaginary file has been deleted.", "success");
});