彈窗sweetalert使用
1. swal('一般提示訊息!');
2. swal('一般提示訊息!', '小字呈現詳細資訊');
3. swal('尚未選擇照片!','' ,'error');
4. swal('關鍵字已更新完成!','' ,'success');
安裝使用方式,下載套件
https://github.com/t4t5/sweetalert/archive/master.zip
引用方式
英文版範例
https://sweetalert.js.org/guides/
中文版
http://mishengqiang.com/sweetalert/
其他實作介紹
https://jsfiddle.net/wellwind/fxh1vam6/
呼叫撰寫在頁面上
沒有留言:
張貼留言