# Sweet alert 元件介紹-1: https://sweetalert.js.org/guides/ 元件介紹-2: http://mishengqiang.com/sweetalert/ ###### tags: `元件分享` cdn連結: ``` <script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script> ``` ## 範例 ### 成功 ``` swal("Good job!", "You clicked the button!", "success"); ``` ### 錯誤 ``` swal("錯誤!", "You clicked the button!", "error"); ``` ### 提示(驚嘆號) ``` swal("提示!", "You clicked the button!", "info"); ``` ### 警告(驚嘆號) ``` swal("提示!", "You clicked the button!", "warning"); ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up