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

边栏推荐
- MySQL lock
- on duplicate key update
- MySQL索引
- Flutter的基础知识之Dart语法
- MVCC多版本并发控制
- 本体开发日记04-努力理解protege的某个方面
- What are the basic concepts of performance testing?What knowledge do you need to master to perform performance testing?
- 问卷问题和答案的合并
- The era of Google Maps is over, how to view high-definition satellite image maps?
- 软件测试面试中,面试官问你一些比较“刁难”的问题你会怎么回答
猜你喜欢

Anti App so层对抗分析

Summary of steps and methods for installing and uninstalling test cases that you must read

lateral view explode的另一种实现方式
What does the test plan include?What is the purpose and meaning?

对于栈、递归的关系的理解

Amplify Shader Editor手册 Unity ASE(中文版)

绝了,这套RESTful API接口设计总结

使用Protege4和CO-ODE工具构建OWL本体的实用指南-1.3版本(4.Building An OWL Ontology)

TestNG使用教程详解

本体开发日记03-理解代码
随机推荐
WAVE SUMMIT 2022深度学习开发者峰会
这12个GIS软件一个比一个好用
“摄像头用不了”+win8.1+DELL+外置摄像头+USB免驱的解决办法
MVCC多版本并发控制
本体开发日记05-努力理解SWRL(Built-Ins)
MySQL Leak Detection and Filling (2) Sorting and Retrieval, Filtering Data, Fuzzy Query, Regular Expression
二叉树的遍历(非递归)
本体开发日记05-努力理解SWRL(中)
真·鸡汤文
常用功能测试的检查点与用例设计思路
Global 19 Google Satellite Map Free View Download
软件测试外包公司怎么样?有什么好处和坏处?为什么没人去?
你一定要看的安装及卸载测试用例的步骤及方法总结
JMeter参数化4种实现方式
MySQL indexes
MySQL Leak Detection and Filling (3) Calculated Fields
全球19级谷歌卫星地图免费查看下载
MVCC multi-version concurrency control
static_assert报错为什么?
如何用数组实现环形队列