因此,在一月份,SweetAlert2为100%正常。成功和错误图标上没有错误。但是在2月之后,图标看起来很奇怪,动画效果也很糟糕。
我已尝试更新CDN,因为2天前SweetAlert2已更新。但是问题仍然没有解决。也许你可以帮助我。
此图像:
这是代码。我正在使用flashdata显示警报。
<?php if ($this->session->flashdata('success-reg')): ?>
<script>
Swal.fire({
icon: 'success',
title: 'Kamu berhasil daftar!',
text: 'Silahkan Cek Email Kamu, Buat Verifikasi!',
showConfirmButton: false,
timer: 2500
})
</script>
<?php endif;?>
升级到SweetAlert2的v9.x
。动画对我来说很好。
v9.x
Swal.fire({
icon: 'success',
title: 'Kamu berhasil daftar!',
text: 'Silahkan Cek Email Kamu, Buat Verifikasi!',
showConfirmButton: false,
timer: 2500
})