Swal有哪些用法?

SweetAlert2 (Swal) 是一个用于创建美观对话框的 JavaScript 库。以下是一些你可以使用 Swal 的例子:

  1. 基础警告框
Swal.fire('Any fool can use a computer')
  1. 带标题的警告框
Swal.fire(
  'The Internet?',
  'That thing is still around?',
  'question'
)
    <

猜你喜欢

转载自blog.csdn.net/m0_57236802/article/details/131589776
今日推荐