art dialog弹出框

                id: 'demo 弹出框id',
                title: '这里是弹出框标题',
                content: '密码:<input class="inpt_con" id="loginpw" type="text" value="" />', //弹出框内容 支持 html
                lock: true,//是否锁定背景
                fixed: true,
                300,//弹出对话框宽度
                ok: function () {
                    var pw = $('#loginpw').val();
                    if (pw != "") {
                        //一个ajax 
                        $.post('************************', { key: value }, function (data) {
                            if (data == "1") {
                                // do something
                            } else {
                                art.dialog({
                                    content: '***************************!',
                                    time: 1.5,//延迟关闭 1.5秒
                                    close: function () {
                                            //关闭后 do something 
                                    
                                    }
                                });
                            }
                            f_dia.close();//可以关闭自己 在上面声明
                        })
                    }
                    return false;
                },
                okValue: '登录',
                cancel: function () {
                    //取消按钮点击后 do something
                   }
            });
QQ:83199235
原文地址:https://www.cnblogs.com/softcg/p/6510972.html