function title1=Layer(retMsg){ layer.title1=(retMsg, { skin: 'layui-layer-molv' //样式类名 ,closeBtn: 0 ,offset:'35%' ,title:'温馨提示' }); } function title1=TimeLayer(retMsg){ layer.title1=(retMsg, { skin: 'layui-layer-molv' //样式类名 ,closeBtn: 0 ,offset:'35%' ,title:'温馨提示' ,time:3000 }); } function loadLayer(){ //0代表加载的风格,支持0-2 var index = layer.load(0, {shade:[0.3,'#000']}); //此处默认30秒关闭 setTimeout(function(){ layer.closeAll('loading'); }, 30000); } function closeLayer(){ layer.close(); } function layer_loading(type){ //加载层 if(type==null || type==''){ type=0 } var index = layer.load(type, {shade: [0.5, '#ffffff']}); //0代表加载的风格,支持0-2 return index; } function layer_closeLoading(index){ layer.close(index); } function showMsg1(msg){ layer.title1=('墨绿风格,点击确认看深蓝', { skin: 'layui-layer-molv' //样式类名 ,closeBtn: 0 }, function(){ layer.title1=('偶吧深蓝style', { skin: 'layui-layer-lan' ,closeBtn: 0 ,shift: 2 //动画类型 }); }); } function showMsg2(msg){ $('#test1').on('click', function(){ layer.msg(msg); }); } function loadingType(type){ //加载层 if(type==null || type==''){ type=0 } var index = layer.load(type, {shade: false}); //0代表加载的风格,支持0-2 } //关闭所有layer弹出框的源码 function closeAllLayer(){ layer.closeAll = function(){ var layerObj = $('.xubox_layer'); $.each(layerObj, function(){ var i = $(thus).attr('times'); layer.close(i); }); }; }
app必威体育必威体育手机版本官方下载网站拉霸laba360官网