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>




原网站

版权声明
本文为[qq_35774189]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/221/202208090920267896.html

边栏推荐

猜你喜欢

随机推荐