当前位置:网站首页>Sweet alert
Sweet alert
2022-08-09 09:20:00 【qq_35774189】
<html>
<head>
<title></title>
<script src="sweetalert-master/dist/sweetalert.min.js"></script>
<link rel="stylesheet" type="text/css" href="sweetalert-master/dist/sweetalert.css">
</head>
<body>
<button οnclick="foo()">Try me</button>
<script>
function foo()
{
swal({
title: "Success!",
text: "Here's my error message!",
type: "success",
confirmButtonText: "Cool"
});
}
</script>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title></title>
<script src="sweetalert-master/dist/sweetalert.min.js"></script>
<link rel="stylesheet" type="text/css" href="sweetalert-master/dist/sweetalert.css">
</head>
<body>
<button οnclick="foo()">Try me</button>
<script>
function foo()
{
swal({
title: "Error!",
text: "Here's my error message!",
type: "error",
confirmButtonText: "cancel"
});
}
</script>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title></title>
<script src="sweetalert-master/dist/sweetalert.min.js"></script>
<link rel="stylesheet" type="text/css" href="sweetalert-master/dist/sweetalert.css">
</head>
<body>
<button οnclick="foo()">Try me</button>
<script>
function foo()
{
swal({
title: "Error!",
text: "Here's my error message!",
type: "success",
confirmButtonText: "cancel"
});
}
</script>
</body>
</html>
边栏推荐
- 网络安全入门基础:IP地址
- These 12 GIS software are better than the other
- Difference: char* and char[]
- 游戏测试的概念是什么?测试方法和流程有哪些?
- [Environmental Construction] tensorrt
- 本体开发日记05-努力理解SWRL(Usage Suggestions)
- A first look at the code to start, Go lang1.18 introductory refining tutorial, from Bai Ding to Hongru, the first time to run the golang program EP01
- 【环境搭建】onnxruntime
- 栈的实现之用链表实现
- 国产谷歌地球同款软件,查看下载19级高清卫星影像so easy!
猜你喜欢
随机推荐
TypeScript简记(一)
年薪40W测试工程师成长之路,你在哪个阶段?
软件测试面试中,面试官问你一些比较“刁难”的问题你会怎么回答
MySQL lock
关于链表的几道大厂面试题
What are the basic concepts of performance testing?What knowledge do you need to master to perform performance testing?
运行flutter项目时遇到的问题修改flutter为国内镜像
lateral view explode的另一种实现方式
栈的实现之用链表实现
AES/ECB/PKCS5Padding encryption and decryption
对于栈、递归的关系的理解
【面试体系知识点总结】---JVM
jfinal加载配置文件原理
MySQL event_single event_timed loop event
Read file by byte and character_load configuration file
本体开发日记02-sparql简单查询
China to create a domestic "Google Earth" clarity scary
【Harmony OS】【ArkUI】ets开发 简易视频播放器
数理逻辑MOOC+知识点总结(未完无待续)
自动化测试简历编写应该注意哪方面?有哪些技巧?