“pertanyaan manis” Kode Jawaban

Sweet Alert 2 melakukan tindakan di konfirmasi

Swal.fire({  
  title: 'Do you want to save the changes?',  
  showDenyButton: true,  showCancelButton: true,  
  confirmButtonText: `Save`,  
  denyButtonText: `Don't save`,
}).then((result) => {  
	/* Read more about isConfirmed, isDenied below */  
    if (result.isConfirmed) {    
    	Swal.fire('Saved!', '', 'success')  
    } else if (result.isDenied) {    
    	Swal.fire('Changes are not saved', '', 'info')  
 	}
});
Orbit Tuner

Sweetalert

<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<script>swal("My title", "My description", "success");</script>
Code Cat

Bootstrap peringatan manis

Swal.fire(  'Good job!',  'You clicked the button!',  'success')
Brave Baboon

Sweetalert

swal("Good job!", "You clicked the button!", "error");
Uninterested Unicorn

pertanyaan manis

swal({
  title: "Are you sure?",
  text: "Once deleted, you will not be able to recover this imaginary file!",
  icon: "warning",
  buttons: true,
  dangerMode: true,
})
.then((willDelete) => {
  if (willDelete) {
    swal("Poof! Your imaginary file has been deleted!", {
      icon: "success",
    });
  } else {
    swal("Your imaginary file is safe!");
  }
});
Grieving Grasshopper

Jawaban yang mirip dengan “pertanyaan manis”

Pertanyaan yang mirip dengan “pertanyaan manis”

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya