ここで何が間違っていますか?
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() {}
)