jquery-confirm插件使用
来源:互联网 发布:js身份证号正则表达式 编辑:程序博客网 时间:2024/05/21 09:51
插件下载
百度搜索 jquery-confirm,这里不再提供相关链接
示例代码
<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Insert title here</title> <script src="/js/jquery-3.1.0.min.js"></script> <link href="/css/confirm/jquery-confirm.min.css" rel="stylesheet"> <script src="/js/confirm/jquery-confirm.min.js"></script></head><body> <a href="javascript:void(0);" onclick="delete(1)">测试删除</a> <script type="text/javascript"> function delete(id) { $.confirm({ theme: 'black', icon: 'fa fa-warning', title: '警告', content: '确认删除该记录?', confirmButton: '是的', cancelButton: '不,先留着', confirm: function () { $.ajax({ type: "GET", url: "#", data: {"id":id}, cache: false, async: false, dataType: "json", success: function(data){ var json = data; if (json.status == 0) { $.alert({ theme: 'black', title: '提醒', content: '删除成功', confirmButton: '好哒', confirm: function(){ window.location.reload(); } }); } }, error: function(XMLHttpRequest, textStatus, errorThrown) { alert(errorThrown); } }); }, cancel: function () { } }); } </script></body></html>
显示效果
阅读全文
0 0
- jquery-confirm插件使用
- Jquery Confirm插件
- 使用jquery插件layer代替window.confirm方法
- 第一次想使用插件,就看看啦!jquery-confirm
- jquery-confirm 弹框插件
- jquery插件jquery.confirm弹出确认消息
- jQuery Confirm插件做页面做弹窗提示
- jquery mobile alter、confirm重写,使用popup
- jquery mobile alter、confirm重写,使用popup
- 使用jquery-confirm优化JS弹出框
- 基于jQuery的窗口插件:jMessageBox 代替alert,confirm
- jquery-confirm自定义alert插件,alert显示内容可以换行
- 重写jquery.confirm.js 摆脱传统alert confirm 插件供下载(一)
- 重写jquery.confirm.js 摆脱传统alert confirm 插件供下载(二)
- 重写jquery.confirm.js 摆脱传统alert confirm 插件供下载(三)
- 重写jquery.confirm.js 摆脱传统alert confirm 插件供下载(四)
- bootstrap confirm 插件 bootboxjs
- 学习--jquery 自定义插件 面向对象 -- 模拟 jquery EasyUi的 自定义 alert + confirm
- px4源码学习五--固定翼位置控制模块
- 基于Unity3D的打开Windows软键盘的功能的实现
- Android自带计时器类CountDownTimer
- maven 连接sqlserver
- C语言 内存动态管理函数
- jquery-confirm插件使用
- xmpp介绍
- Request获取请求数据
- MySql导入导出
- HDU 4815 Little Tiger vs. Deep Monkey(母函数)
- 把之前安装的jdk1.7换成1.6之后在dos命令Java -version 死活1.7问题解决
- 发送邮件
- SQL SERVER和Oracle中in查询在实际中的应用
- Spring boot 使用异步@Async