时间:2021-07-01 10:21:17 帮助过:17人阅读
先给大家演示效果:
在线预览 源码下载
代码如下:
sweetAlert("Oops...", "Something went wrong!", "error");
Pretty cool huh? SweetAlert automatically centers itself on the page and looks great no matter if you're using a desktop computer, mobile or tablet. It's even highly customizeable, as you can see below!
In these examples, we're using the shorthand function swal to call sweetAlert.
A title with a text under
swal("Here's a message!", "It's pretty, isn't it?")
A success message!
swal("Good job!", "You clicked the button!", "success")
A warning message, with a function attached to the "Confirm"-button...
以上就是本文通过代码给大家详解jquery SweetAlert插件实现响应式提示框,希望对大家有所帮助。