art dialog弹出框

我怕爱的太早我们不能终老 提交于 2019-12-24 21:44:22
                id: 'demo 弹出框id',
                title: '这里是弹出框标题',
                content: '密码:<input class="inpt_con" id="loginpw" type="text" value="" />', //弹出框内容 支持 html
                lock: true,//是否锁定背景
                fixed: true,
                width: 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
                   }
            });
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!