JavaScript 警告插件 Sweet Alert

码农软件 · 软件分类 · 其他jQuery插件 · 2020-01-03 23:42:27

软件介绍

SweetAlert 是一个漂亮的 JavaScript 警告的替代品。它可以自动显示在页面中间,不论是在电脑上、手机上还是平板上都很好看,而且还高度定制化。

示例代码:

swal({
  title: "Are you sure?",
  text: "You will not be able to recover this imaginary file!",
  type: "warning",
  showCancelButton: true,
  confirmButtonColor: "#DD6B55",
  confirmButtonText: "Yes, delete it!",
  closeOnConfirm: false,
  html: false}, function(){  swal("Deleted!",  "Your imaginary file has been deleted.",  "success");
});

A success modal

本文地址:https://www.codercto.com/soft/d/22611.html

Spring Into HTML and CSS

Spring Into HTML and CSS

Molly E. Holzschlag / Addison-Wesley Professional / 2005-5-2 / USD 34.99

The fastest route to true HTML/CSS mastery! Need to build a web site? Or update one? Or just create some effective new web content? Maybe you just need to update your skills, do the job better. Welco......一起来看看 《Spring Into HTML and CSS》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

URL 编码/解码
URL 编码/解码

URL 编码/解码

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换