sweetalert
来源:互联网 发布:易视网络电视在线直播 编辑:程序博客网 时间:2024/06/06 16:30
<span style="font-size:14px;"> <ul class="examples"> <li class="message-html"> <div class="ui"><p>An HTML message</p><button>Try me!</button> </div></li></ul><div> <button class="ss" id="xx">xxx</button></div> <script type="text/javascript" src="app/js/jquery-1.9.0.min.js "></script> <script type="text/javascript" src="app/js/sweetalert/sweetalert-dev.js"></script> <script> document.querySelector("#xx").onclick = function(){ alert("adaf");swal({title: "HTML <small>Title</small>!",text: 'A custom <span style="color:#F8BB86">html<span> message.',html: true }); };</span><pre name="code" class="html"><span style="font-size:14px;"> document.querySelector</span><span style="font-size:14px;">('ul.exaples li.message-html button').onclick = function(){</span><span style="font-size:14px;"></span><pre name="code" class="html"><span style="font-size:14px;"> alert("adaf");swal({title: "HTML <small>Title</small>!",text: 'A custom <span style="color:#F8BB86">html<span> message.',html: true }); };</span></script>
ajax中怎么替换alert框
<form class="form-horizontal" role="form" id="userAddForm">
。。。。
</form>
$("#userAddForm").submit(function(e){
e.preventDefault();
data=$(this).serialize();
var id = $("#room_number option:selected").val();
$.ajax({
"url" : "rest/user/"+id+"/addUser",
"type" : "post",
"dataType" : "text",
"data" : data,
"success":function(e){
swal({
title: "开户 <small>成功</small>!",
text: 'A custom <span style="color:#F8BB86">success<span> message.',
html: true
});
},
"error" : function(e){
alert("保存失败");
swal({
swal("Oops...", "Something went wrong!", "error");s
});
}
});
});
$("#cancel").click(function(e){
location.href="rest/user/to_addUser";
});
});
0 0
- sweetalert
- SweetAlert
- SweetAlert详解
- sweetalert demo
- SweetAlert详解
- SweetAlert详解
- SweetAlert入门教程
- SweetAlert用法
- SweetAlert插件
- sweetalert使用
- Sweetalert使用说明
- SweetAlert-js应用
- 基础级 - sweetAlert
- sweetalert弹框使用
- SweetAlert相关API
- Android studio SweetAlert for Android
- SweetAlert简单使用,弹出对话框
- tp5 sweetalert美化弹框
- Fckeditor漏洞利用方法总结
- ewebeditor漏洞利用总结
- Eventbus的使用与深入-- 一个好用的开源的事件订阅与发布总线,解放你的handler
- 移动端爬坑记 --- (1)布局与样式上的奇葩偶遇
- 搜索引擎使用中的奇技淫巧
- sweetalert
- fatal error C1083: 无法打开包括文件:“jni.h”: No such file or directory
- 另类下载者轻松突破瑞星2010主动防御及ESET高启发
- x64 PL/SQL 连接 Oralce 提示 Could not initialize oci.dll
- LCA
- 前端开发规范
- B - FatMouse's Speed
- 新建第一个Android程序
- VC 6.0常用控件使用方法介绍