Sweetalert introduction:
SweetAlert is a JavaScript native plug-in that does not require jquery support. It can perfectly replace the alert pop-up box that comes with JavaScript. It has powerful functions and beautiful design. The most important point is that it can be adaptive, and it also has a very good display effect on the mobile phone, which is much more beautiful than layui.
sweetalert :
https://www.sweetalert.cn/
An example of adding html code to the sweetalert pop-up window plug-in:
swal({
title: "购卡协议",
text: "这里是html代码,省略不写",
html: true,
confirmButtonText: "好的",
})