微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

sweetalert

编程之家收集整理的这个编程导航主要介绍了sweetalert编程之家,现在分享给大家,也给大家做个参考。

sweetalert 介绍

sweetalert一款原生js提示框,允许自定义支持设置提示标题提示类型、确认取消按钮文本、点击后回调函数等等

sweetalert 安装 

1.bower安装

bower install sweetalert

2.npm安装

npm install sweetalert

3.直接引用

<script src="js/sweetalert.min.js"></script>

<link rel="stylesheet" type="text/css" href="css/sweetalert.css"/>

sweetalert使用

swal({

title: "OK!",

text: "Nice to meet you!",

type: "success",

confirmButtonText: "HaHa"

})

网站地址:http://t4t5.github.io/sweetalert

GitHub:https://github.com/t4t5/sweetalert

网站描述:SweetAlert 是一个 JavaScript 原生弹框的完美的替代

sweetalert

官方网站:http://t4t5.github.io/sweetalert

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。