<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>无标题文档</title></head><script src="https://code.jquery.com/jquery-2.1.3.min.js"></script><script src="dist\sweetalert-dev.js"></script><link rel="stylesheet" href="dist\sweetalert.css"><script>$(function (){$("#div1").click(function() {swal("这是一个信息提示框!");});});</script><body><div id="div1">测试1</div></body></html>
详细 参数
swal({
title: "您确定要删除吗?",
text: "您确定要删除这条数据?",
type: "warning",
showCancelButton: true,
closeOnConfirm: false,
confirmButtonText: "是的,我要删除",
confirmButtonColor: "#ec6c62"
}
API
本文介绍了一个基于 jQuery 的 SweetAlert 弹窗插件的使用方法,包括基本用法和 API 参数配置,展示了如何创建不同类型的弹窗对话框。
2584

被折叠的 条评论
为什么被折叠?



