甜蜜警报 2 v7.24.1 - 零件

如果您想使用看起来很棒的东西替换经典警报框,您可以使用Sweet Alert 2插件。 我们更改了插件提供的排版和颜色 Tristan Edwards.

F有关更多信息,请检查 Full Documentation

<button class="btn btn-primary btn-fill" onclick='swal({ title:"Good job!", text: "You clicked the button!", type: "success", buttonsStyling: false, confirmButtonClass: "btn btn-success"})'>Try me!</button>