我想在回調函數後添加另一個函數Sweetalert2。 在示例中,只需在swal運行時添加計時器。 這是基本的代碼: swal({
title: 'alert!',
text: 'I need this close after my function',
})
及以下ajax和我需要的swal接近second後ajax成功 $.ajax({
dataType:
我到目前爲止的代碼,把我送到某個網頁: swal({
title: 'Successfully Registered!',
text: "Do you want to go to the Log In page?",
type: 'success',
showCancelButton: true,
confirmButtonColor: '#308