Do front-end development often encounter when the modification is successful, the success of these new pop-up with alert if a bit too low, while swal () is a simple and practical method of pop-up box
alert pop-up style as follows:
Swal () popup style as follows:
code show as below:
swal("success", "edit successfully", "success");
Of course, we also need to introduce sweetalert.min.js, sweetalert.css these two files to take effect.