layer.msg 加空值判断

This commit is contained in:
thinkgem
2021-12-30 23:20:34 +08:00
parent 04b310b0f8
commit 2dde6aa8e7

View File

@@ -1,4 +1,4 @@
/**
/**
@Namelayer v3.1.1 Web弹层组件
@Author贤心
@Sitehttp://layer.layui.com
@@ -141,9 +141,11 @@ var layer = {
}, type ? {} : options));
},
msg: function(content, options, end){ //最常用提示层
//最常用提示层
msg: function(content, options, end){
var type = typeof options === 'function', rskin = ready.config.skin;
var skin = (rskin ? rskin + ' ' + rskin + '-msg' : '')||'layui-layer-msg';
options = options || {};
skin = skin + ' ' + (options.positionClass || '');
var anim = doms.anim.length - 1;
if(type) end = options;