When we are talking about web development, there are two things that every programmer has probably done:Used console.log()to debug the code;Used alert()to display messages on the screen.
Bạn đang xem: Sweetalert2
Xem thêm: countdown timer php
And best of all is that it is compatible with all current browsers:
Pretty cool, isn’t it? We could go on showing several examples of what the library is capable of, but on the official websitethere are several other examples, such as alerts with:AJAX requestsCustom layout (background, image, colors, etc.)Different positioning (note that, by default, it always puts in the middle, regardless of the form size of your device)Auto close timerAnd much more!
All other possible settings, input types, methods, events, etc., are available on the site as well.
About the Author
Diogo Souzaworks as a Java Developer at PagSeguro and has worked for companies such as Indra Company, Atlantic Institute & Ebix LA. He is also an game android trainer, speaker at events on Java and mobile world.