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); }); } } });
转载于:https://www.cnblogs.com/jamal/p/10036324.html
最后
以上就是跳跃帆布鞋最近收集整理的关于layer open用法的全部内容,更多相关layer内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复