【发布时间】:2016-11-02 12:15:34
【问题描述】:
我在这里做错了什么?
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() {}
)
【问题讨论】:
标签: jquery sweetalert sweetalert2