sweetalert2 全面替代 alert ,從 sweetalert2 彈出 text 到 彈出 Dom 以及模態框和取消 sweetalert2 的 OK 按鈕


1. 簡易基本版 sweetalert 涵蓋日常基本的彈出及對話框



2. 升級版本 sweetalert2 滿足常見開發工作中的各種要求




3 取消 OK 按鈕, 只需要設置 showConfirmButton: false,

      Swal({
        title: 'Oops...',
        text: 'Something went wrong!',
        showConfirmButton: false,
      })


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM