1 Star 2 Fork 0

张坤/jquery-alert

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
index.html 910 Bytes
一键复制 编辑 原始数据 按行查看 历史
张坤 提交于 2020-10-12 17:03 +08:00 . change:更改样式
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>自定义弹框</title>
<script src="./alert/jquery-1.8.1.js"></script>
<script src="./alert/alert.min.js"></script>
<style>
.btn-box {
width: 800px;
margin: 80px auto;
}
</style>
</head>
<body>
<div class="btn-box">
<button class="alert">提示框</button>
<button class="confirm">确认框</button>
</div>
<script>
$('.alert').on('click', function () {
$.alert('成功');
});
$('.confirm').on('click', function () {
$.confirm('是否确认?', function (isConfirm) {
if (isConfirm) {
$.alert('确认');
} else {
$.alert('取消');
}
});
});
</script>
</body>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/zhangkun198615/jquery-alert.git
git@gitee.com:zhangkun198615/jquery-alert.git
zhangkun198615
jquery-alert
jquery-alert
master

搜索帮助