1. 程式人生 > >layer open用法

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); }); } } });