我在这里做错了什么?
swal({
title: "Done.",
text: "Labels Printed.",
timer: 1000,
type: "success",
showConfirmButton: false
}).then(function () {
alert('done');
});
警报没有被触发,我是否需要以某种方式捕捉“计时器”?(警报只是一个例子,我实际上是在这里清除我的表格。)
另外,我如何摆脱 textLabels:1 Uncaught (in promise) 计时器错误?
我正在使用.done()
有人可以为 SweetAlert2 添加标签吗?我没有这样做的声誉。
米克
当我不希望之后发生任何事情时,我需要做什么?:
swal({
title: "Error.",
text: "Authorisation Failed.",
timer: 1000,
type: "error",
showConfirmButton: false
}).then(
function() {}
)
像这样?:
}).then(
function() {},
function() {}
)