mirror of
https://gitee.com/layui/layui.git
synced 2025-08-23 22:11:38 +08:00
新增 layer.closeLast(type)
方法
This commit is contained in:
parent
08dce68a70
commit
10c55087c2
@ -1197,6 +1197,12 @@ layer.closeAll = function(type, callback){
|
|||||||
if(domsElem.length === 0) typeof callback === 'function' && callback();
|
if(domsElem.length === 0) typeof callback === 'function' && callback();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// 根据弹层类型关闭最近打开的层
|
||||||
|
layer.closeLast = function(type){
|
||||||
|
type = type || 'page';
|
||||||
|
layer.close($('.layui-layer-'+ type +':last').attr("times"));
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
拓展模块,layui 开始合并在一起
|
拓展模块,layui 开始合并在一起
|
||||||
|
Loading…
Reference in New Issue
Block a user