当前位置:网站首页>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>
边栏推荐
猜你喜欢
随机推荐
Django实现对数据库数据增删改查(二)
中国打造国产“谷歌地球”清晰度吓人
lateral view explode的另一种实现方式
MySQL event_single event_timed loop event
How much do you know about the mobile APP testing process specifications and methods?
软件测试面试思路技巧和方法分享,学到就是赚到
软件测试外包公司怎么样?有什么好处和坏处?为什么没人去?
这12个GIS软件一个比一个好用
MySQL事件_单次事件_定时循环事件
What are the basic concepts of performance testing?What knowledge do you need to master to perform performance testing?
本体开发日记03-排错进行时
编程memonic chant、trick
你一定要看的安装及卸载测试用例的步骤及方法总结
MySQL Leak Detection and Filling (2) Sorting and Retrieval, Filtering Data, Fuzzy Query, Regular Expression
软件测试个人求职简历该怎么写,模板在这里
What does the test plan include?What is the purpose and meaning?
数理逻辑MOOC+知识点总结(未完无待续)
When and How to use MALLOC
Amplify Shader Editor手册 Unity ASE(中文版)
本体开发日记03-理解代码