jquery - 甜蜜的警报计时器功能不适用于我的代码集
问题描述
我做了甜蜜警报,但我的甜蜜警报工作得很好
这是我的甜蜜警报代码计时器功能似乎不起作用计时器不遵循规则必须按自动关闭。
swal({
title: "Do you want to continue?",
text: "Choosing a plan now will override your plan customization.",
icon: "warning",
buttons: true,
dangerMode: true,
})
.then((willDelete) => {
if (willDelete) {
plan2a2();
swal("Plan customization override done.", {
icon: "success",
timer: 3000,
buttons: false,
});
} else {
document.getElementById("cust").value = parseInt(1);
swal("your plan customization is safe!", {
icon: "success",
timer: 3000,
buttons: false,
});
}
});