swal({
title: "用户是否已经付款?",
icon: "warning",
dangerMode: true,
buttons: {
cancel: "取消",
defeat: "未付款",
confirm: {
text:"已付款",
value: "confirm"
}
}
}).then((value) => {
switch (value) {
case "defeat":
(方法)
break;
case "confirm":
(方法)
break;
default:
}
});
swal()弹窗多个按钮
最新推荐文章于 2022-06-08 17:08:13 发布