我有一个SweetAlert弹窗,但它会自动关闭。通常情况下,它应该等到用户点击“确定”才关闭。(我已经包含并测试了所有SweetAlert文件。)
<button class="btn btn-success" type="submit" name="submit" onclick="myFunction()">Submit</button>
<script>
function myFunction() {
swal("Submitted!", "Your Issue has been submitted!", "success");
}
</script>