如何在 html 内容更新后添加更多 html 到 sweetalert?
How to add more html to sweetalert after html to content update?
我之前看到您可以编辑 sweetalert 的 html 部分,但现在已经更改为内容而不是原始 html。有没有办法回到使用 html 或另一种添加输入的方式。我在另一个 post 中看到,使用模态代替可能会更好。
https://github.com/sweetalert2/sweetalert2/issues/451这里是带html的向导。
您正在使用 SweetAlert2。
普通的 HTML 选项仍然存在。
用法如下:
swal({
title: 'Title',
html: 'A custom <span style="color: #F8BB86">html<span> message.'
});
Javascript Sweet Alert and html link inside text
我之前看到您可以编辑 sweetalert 的 html 部分,但现在已经更改为内容而不是原始 html。有没有办法回到使用 html 或另一种添加输入的方式。我在另一个 post 中看到,使用模态代替可能会更好。
https://github.com/sweetalert2/sweetalert2/issues/451这里是带html的向导。
您正在使用 SweetAlert2。
普通的 HTML 选项仍然存在。 用法如下:
swal({
title: 'Title',
html: 'A custom <span style="color: #F8BB86">html<span> message.'
});
Javascript Sweet Alert and html link inside text