layer.msg()的使用 多个按钮 默认的是哪个按钮 设置关闭时间

layer.msg('同上', {

  icon: 6,

  btn: ['按钮一', '按钮二', '按钮三'],

  yes: function(index, layero){ // 默认的是 按钮一

   alert(888);

  },

  title: ['文本', 'font-size:18px;'],

  shade: [0.8, '#393D49'],

  time: 9000}, function(){

    alert(111)

  });

 

猜你喜欢

转载自blog.csdn.net/qq_37469931/article/details/85160365