jquery-ui常规弹窗写法:
来源:互联网 发布:网络电视盒子排行榜 编辑:程序博客网 时间:2024/06/05 04:08
jquery-ui常规弹窗写法:
引入依赖包:
<script th:src="@{/assets/js/jquery.js}"></script><script th:src="@{/assets/js/jquery-ui.js}"></script><script th:src="@{/assets/js/bootstrap.js}"></script>
容器html:
<div id="dialog-confirm-fail" class="hide"> <label>确定退稿?</label></div>
js代码:
$( "#dialog-confirm-fail" ).removeClass('hide').dialog({resizable: true,width: '400',height:'150',modal: true,title: "提示",title_html: true,buttons: [{html: "确定",click: function() {$( this ).dialog( "close" );$.ajax({type : "POST",url : "updateStatus",data : {"ids":mid,"status":"unpassed"},success : function(data) {layer.msg(data, {time: 1000});setTimeout(function(){window.location.href = getRootPath()+"/administrator/manuscriptManagement/";}, 1000);}});}} ,{html: "取消",click: function() {$( this ).dialog( "close" );}}]});
效果图:
阅读全文
0 0
- jquery-ui常规弹窗写法:
- jQuery使用方法非常 适用于常规写法
- html常规写法
- jQuery UI弹窗效果
- 3.jQuery 常规选择器
- jQuery常规选择器
- jQuery—常规选择器
- jQuery 常规选择器
- jQuery 常规选择器
- jquery ui实现弹窗效果
- jQuery写法:
- 处理列表元素的非常规写法。
- strlen()函数的常规写法和递归写法
- Ruby插入排序的常规写法和递归写法
- jquery 对控件常规操作
- jquery解决常规冲突问题
- jQuery(三)常规选择器
- jQuery(二)常规选择器
- 拷贝构造函数
- 个人常见网址的链接
- caffe的softmax层原理及代码解析
- 判断三角形
- nginx惊群现象
- jquery-ui常规弹窗写法:
- AndroidStudio Instrument JUnit test 断点失效处理
- Unity5网络模块Network介绍
- Caffe学习笔记4--最优求解过程Solver
- node.js升级的问题
- AlphaGo Zero与增强学习
- MVP框架使用Fretiofit获取网络数据使用xrecycleview实现上拉加载下拉刷新
- es6学习第1天,箭头函数 块级作用域
- 【bzoj 1036】树的统计(树链剖分)