代码地址:https://github.com/sweetalert2/sweetalert2/
代码
<script src="//cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<script>
Swal.fire({
title: '<strong>确定现在注册嘛?</strong>',
icon: 'info',
html:
'您现在还可以 <b>尝试取消</b>, ' +
'<a href="//sweetalert2.github.io">links</a> ' +
'以回看您的注册信息',
showCloseButton: true,
showCancelButton: true,
focusConfirm: false,
confirmButtonText:
'<i class="fa fa-thumbs-up"></i> 确定注册!',
confirmButtonAriaLabel: 'Thumbs up, great!',
cancelButtonText:
'<i class="fa fa-thumbs-down"></i> 取消注册!',
cancelButtonAriaLabel: 'Thumbs down'
})
</script>
![](https://i-blog.csdnimg.cn/blog_migrate/3523a7984b6fa99cd0ad2b22810a10b7.png)
特殊说明: 以上文章,均是我实际操作,写出来的笔记资料,不会盗用别人文章!烦请各位,请勿直接盗用!转载记得标注来源!