layui use with the mind

layui confir use

No close button upper right corner of the display

Designated operation button for balloons

layer.confirm ( "here to fill message", {closeBtn: 0, icon : 0, title: ' prompt', btn: [ "button a" ]},
      function (index) {
     // operations to be performed 

     layer.close (index); 
});

 

layui icon Use

How to set the rotation loading chart

<i class="layui-icon layui-anim layui-anim-rotate layui-anim-loop">&#xe63d;</i>

 

If you need to set yourself a icon

            layer.confirm ( "here to fill message" , 
                { 
                    closeBtn and: 0 , 
                    Content: '<= class I "icon layui-Anim-layui layui-Anim-Rotate layui-Anim-Loop"> xe63d & #; </ I> ' , 
                    title: ' prompt ' , 
                    BTN: [ "cancel" ] 
                }, 
                function (index) { 

                    window.location.reload (); 
                    layer.close (index); 
                });

 

Guess you like

Origin www.cnblogs.com/catherinehu/p/11271008.html