EasyUI——弹窗展示数据代码
2016-03-20 11:29
375 查看
JS代码:
$("#editDv").css("display","block");
$("#editDv").dialog({
title: "温馨提示:请在此编辑您的用户信息~",
width:500,
height: 300,
collapsible: true,
maximizable: true,
buttons: [{
text: '确认修改',
iconCls: 'icon-ok',
handler: function () {
//通过异步请求 修改数据
var recData = $("#frm1").serialize();
$.get("/UsersHandler/Edit",recData, function (data) {
if (data == "ok") {
$("#editDv").dialog("close");
updatePage();//调用更新方法
}
})
}
}]
});
-------------------------------------------------------------------------------
html代码:
<div id="editDv">
<h3>修改用户信息界面</h3>
<hr />
<form id="frm1">
<input type="hidden" id="id" name="id" value=""/>
<table>
<tr>
<td>编号</td><td id="idId"></td>
</tr>
<tr>
<td>用户名</td><td><input type="text" id="txtName" name="userName" value=""/></td>
</tr>
<tr>
<td>密码</td><td><input type="text" id="txtPwd" name="password" value=""/></td>
</tr>
</table>
</form>
</div>
----------------------------------------------------------------------------------
效果展示:
$("#editDv").css("display","block");
$("#editDv").dialog({
title: "温馨提示:请在此编辑您的用户信息~",
width:500,
height: 300,
collapsible: true,
maximizable: true,
buttons: [{
text: '确认修改',
iconCls: 'icon-ok',
handler: function () {
//通过异步请求 修改数据
var recData = $("#frm1").serialize();
$.get("/UsersHandler/Edit",recData, function (data) {
if (data == "ok") {
$("#editDv").dialog("close");
updatePage();//调用更新方法
}
})
}
}]
});
-------------------------------------------------------------------------------
html代码:
<div id="editDv">
<h3>修改用户信息界面</h3>
<hr />
<form id="frm1">
<input type="hidden" id="id" name="id" value=""/>
<table>
<tr>
<td>编号</td><td id="idId"></td>
</tr>
<tr>
<td>用户名</td><td><input type="text" id="txtName" name="userName" value=""/></td>
</tr>
<tr>
<td>密码</td><td><input type="text" id="txtPwd" name="password" value=""/></td>
</tr>
</table>
</form>
</div>
----------------------------------------------------------------------------------
效果展示:
相关文章推荐
- Vue.js基本规则提炼总结及计算属性学习
- UIGestureRecognizer手势 : 1-概要介绍
- UIKit Dynamics
- YMS Round #1 Div. 2 D Subsequences Summing to Sevens
- iOS 设置1像素的UIView线
- iOS开发基础——UIView
- 关于UIView的autoresizingMask属性的研究
- UI中常用方法的调用时间
- UVA 10689 Yet another Number Sequence(Fibonacci数列)
- android之handler更新UI
- 利用PBFunc在Powerbuilder中解析Json对象
- iOS——UISegmentedControl的使用
- 深入理解异步消息处理机制Message,handler,MessageQueue,looper
- iOS --- 使用runtime解决3D Touch导致UIImagePicker崩溃的问题
- lintcode-medium-Distinct Subsequences
- BZOJ4435 : [Cerc2015]Juice Junctions
- 为QuickTime Player添加快进快退快捷键
- 三十分钟理解博弈论“纳什均衡” -- Nash Equilibrium
- 三十分钟理解博弈论“纳什均衡” -- Nash Equilibrium
- 三十分钟理解博弈论“纳什均衡” -- Nash Equilibrium