layui layer.confrim弹框用法以及fastadmin Fast.api.open用法

一、layier.confirm用法

layer.confirm('纳尼?', {
 title: '<span class="confirm-title-style">操作提示</span>',
icon: 0,
closeBtn: 2,
shade: [0.3, '#000'],
shadeClose: true,
id: "one",
anim: 2,
isOutAnim: false,
type: 0,
maxmin: true,
fixed: true,
resize: true,
resizing: function(val) {
console.log("val", val);
},
btn: ['按钮一', '按钮二', '按钮三'] //可以无限个按钮
,btn3: function(index, layero){
//按钮【按钮三】的回调
}
}, function(index, layero){
//按钮【按钮一】的回调
}, function(index){
//按钮【按钮二】的回调
});

二、fast.api.open用法

Fast.api.open(url,['附件上传', 'font-size:13px'], {area:["800px","50%"],zIndex:9999999999,resize:false,shadeClose:true,shade:0.3});

 

posted @ 2024-09-05 10:40  温柔的风  阅读(36)  评论(0编辑  收藏  举报