diff --git a/src/modules/layer.js b/src/modules/layer.js index f274db5a..f5007fc2 100644 --- a/src/modules/layer.js +++ b/src/modules/layer.js @@ -1288,9 +1288,9 @@ layer.closeAll = function(type, callback){ }; // 根据弹层类型关闭最近打开的层 -layer.closeLast = function(type){ +layer.closeLast = function(type, callback){ type = type || 'page'; - layer.close($('.layui-layer-'+ type +':last').attr("times")); + layer.close($('.layui-layer-'+ type +':last').attr("times"), callback); };