sweetAlert弹窗组件

实现提示弹窗效果

<script src="/resources/js/sweetalert/dist/sweetalert.min.js"></script>
<link href="/resources/js/sweetalert/dist/sweetalert.css" rel="stylesheet" />

swal({
        title: "操做提示",
        text:"请从新输入 !",
        type: "warning",
        showConfirmButton:true,
        confirmButtonColor: "#DD6B55",
        confirmButtonText: "确认",
        closeOnConfirm: true
    },
    function(){location.reload();}
    );

alert

注意:引入js是否依赖jQuery或Bootstrap js不曾测试(**)

详细使用语法和更多信息详见:[ http://t4t5.github.io/sweetalert/ ]

其余弹出框语法和使用以及效果详见:[ http://www.tuicool.com/articles/JJVZfe ]