layer open用法


  layer.open({
                title: '添加管理員',
                type: 1,
                area: ['700px', '530px'],
                fix: false, //不固定
                maxmin: true,
                content: $('#dlgAdd').html(),
                success: function (layero, index) {
                },
                end: function () {
                    var handle_status = $("#handle_status").val();
                    if (handle_status == '1') {
                        layer.msg('添加成功!', {
                            icon: 1,
                            time: 2000 //2秒關閉(如果不配置,默認是3秒)
                        }, function () {
                            history.go(0);
                        });
                    } else if (handle_status == '2') {
                        layer.msg('添加失敗!', {
                            icon: 2,
                            time: 2000 //2秒關閉(如果不配置,默認是3秒)
                        }, function () {
                            history.go(0);
                        });
                    }
                }
            });

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM