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

相关文章:

  • 2021-06-09
  • 2022-12-23
  • 2022-02-24
  • 2022-01-14
  • 2021-10-27
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-22
  • 2021-06-17
  • 2022-02-04
  • 2021-10-12
  • 2022-02-19
  • 2021-12-10
  • 2022-02-06
相关资源
相似解决方案