layer.msg 彈出不同的效果的樣式


icon 1到6的不同效果

layer.msg("我是一個勾,並抖動", {icon:1,time:2000, shift: 6});//一個勾
layer.msg("我是一個x,並抖動", {icon:2,time:2000, shift: 6});//一個叉
layer.msg("我一是一個問號,並抖動", {icon:3,time:2000, shift: 6});//一個問號
layer.msg("我是一把鎖,並抖動", {icon:4,time:2000, shift: 6});//一個鎖
layer.msg("我是一個哭臉,並抖動", {icon:5,time:2000, shift: 6});//一個哭臉
layer.msg("我是一個笑臉,並抖動", {icon:6,time:2000, shift: 6});//一個笑臉

shift 1到6的不同效果

shift:1 從上到下
shift:2 從下到上
shift:3 從左到右
shift:4 從左180飛過來
shift:5 從里到外
shift:6 抖動

msg彈窗

layer.msg("的確不錯", {icon:1})

alert 帶一個事件

layer.alert("恭喜你", {closeBtn: 0, skin: 'layui-layer-lan'}, function(){
    layer.msg('hah', {icon:1});
});

 

 

來源  https://www.sgfoot.com/view/12


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM