layui弹出框(点击按钮执行方法)

function alertTips(){
  layui.use('layer', function() {
    layer.open({
      type: 2,
      title: '数据维护',
      area: ["600px", "400px"],
      shade: 0.5,
      maxmin: true,
      offset: [80, 0],
      content: 'changepassword.html',
      zIndex: layer.zIndex,
      success: function(layero) {
        layer.setTop(layero);
      }
    });
  });
}

posted @ 2020-10-25 16:24  Ao_min  阅读(1721)  评论(0编辑  收藏  举报