Information Box-Example 1layer.alert (' It's really nice to see you, ' {Icon:6}); //Information Box-Example 2Layer.msg (' Are you sure you're handsome? ‘, {time:0//do not close automatically, BTN: [' must ah ', ' ugly to explode '], yes:function(Index) {layer.close (index); Layer.msg (' Ya minute fly butterfly o.o ', {icon:6, btn: [' AW ', ' aw ', ' aw '] }); }});//Information Box-Example 3Layer.msg (' This is the most used ');//Information Box-Example 4Layer.msg (' Not happy. ', {Icon:5});//Information Box-Example 4Layer.msg (' Dying to sell ',function(){//actions after closing});//page Layer-CustomLayer.open ({type:1, Title:false, closebtn:false, Shadeclose:true, Skin:' YourClass ', Content:' Custom HTML content '});//page Layer-CeriaLayer.open ({type:1, Title:false, closebtn:false, Area:' 516px ', Skin:' Layui-layer-nobg ',//No background colorShadeclose:true, Content: $ (' #tong ')});//IFRAME Layer-parent-child OperationLayer.open ({type:2, area: [' 700px ', ' 530px '], FIX:false,//not fixedMaxmin:true, Content:' Test/iframe.html '});//IFRAME Layer-MultimediaLayer.open ({type:2, Title:false, area: [' 630px ', ' 360px '], shade:0.8, closebtn:false, Shadeclose:true, Content:' Http://player.youku.com/embed/XMjY3MzgzODg0 '}); Layer.msg (' Click on the mask to close at any point ');//IFRAME Layer-Forbidden scroll barLayer.open ({type:2, area: [' 360px ', ' 500px '], Skin:' Layui-layer-rim ',//Plus BorderContent: [' http://layer.layui.com/mobile ', ' no ']});//load Layer-default stylelayer.load ();//The demo is closed hereSetTimeout (function() {Layer.closeall (' Loading ');}, 2000);//load Layer-style 2Layer.load (1);//The demo is closed hereSetTimeout (function() {Layer.closeall (' Loading ');}, 2000);//load Layer-style 3Layer.load (2);//The demo is closed hereSetTimeout (function() {Layer.closeall (' Loading ');}, 2000);//load Layer-style 4Layer.msg (' Loading in ', {icon:16});//soy sauceLayer.msg (' Icon:4, make a soy sauce ',}});//Tips Layer-upperLayer.tips (' On ', ' #id或者. class ', {tips: [1, ' #0FA6D8 ']//can also be configured with color});//Tips Layer-RightLayer.tips (' Default is Right ', ' #id或者. class ');//tips Layer-downLayer.tips (' Down ', ' #id或者. class ', {tips:3});//Tips Layer-leftLayer.tips (' left ', ' #id或者. class '), {tips: [4, ' #78BA32 ']});//Tips Layer-do not destroy the previousLayer.tips (' Do not destroy previous ', ' #id或者. class ', {tipsmore:true});//default PromptLayer.prompt (function(val) {layer.msg (' Got ' +val);});//Block Browser scroll barLayer.open ({content:' Browser scroll bar is locked ', ScrollBar:false});//Popup is full screenvarindex =Layer.open ({type:2, Content:' Http://www.layui.com ', area: [' 300px ', ' 195px '], Maxmin:true}); Layer.full (index);//just aboveLayer.msg (' Flexible use of offset ', {offset:0, Shift:6});//more examplesLayer.msg (' Entering ');
Layer.load ("in question analysis, may take a while, please later ...", 0); parsing