当前位置:网站首页>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>

边栏推荐
猜你喜欢
随机推荐
JS报错-Uncaught TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on...
软件测试面试常见问题及答案(发散思维、接口、性能、概念、)
TestNG使用教程详解
[Environmental Construction] tensorrt
软件测试个人求职简历该怎么写,模板在这里
自动化测试简历编写应该注意哪方面?有哪些技巧?
学习双向链表的心得与总结
游戏测试的概念是什么?测试方法和流程有哪些?
高清卫星地图浏览器
Domestic Google earth, terrain analysis seconds kill with the map software
初窥门径代码起手,Go lang1.18入门精炼教程,由白丁入鸿儒,首次运行golang程序EP01
MySQL Leak Detection and Filling (3) Calculated Fields
MySQL Checking and Filling Leaks (5) Unfamiliar Knowledge Points
数据治理(四):数据仓库数据质量管理
Jfinal loading configuration file principle
What are the basic concepts of performance testing?What knowledge do you need to master to perform performance testing?
约瑟夫问题的学习心得
2048小游戏成品源码
本体开发日记05-努力理解SWRL(中)
MySQL查漏补缺(四)存储过程和游标






