私は現在、sweetalert2 を使用しており、アラートが閉じるタイミングを検出しようとしています。ただし、DeleteUnsavedImages 関数は起動していません。機能を onclose キーに割り当てるとうまくいくと思いましたが、うまくいきませんでした。
swal({
html: data,
showCloseButton: false,
showCancelButton: false,
width: 800,
showConfirmButton: false,
onClose: DeleteUnsavedImages()
}).then(function () {
});
function DeleteUnsavedImages(){
var test = "-1";
}
どんな助けでも大歓迎です:-)