- 注册时间
- 2016-10-29
- 最后登录
- 1970-1-1
- 阅读权限
- 10
- 积分
- 222
- 精华
- 0
- 帖子
- 45
 
|
function edit(e) {
console.log(e.record); 这里不能通过record获取一行的数据,要用什么方式获取这一行数据
var row = grid.getSelected();
if (row) {
mini.open({
url: "ServerCon/ServerG_Form.aspx",
title: "---",
width: 400,
height: 300,
onload: function () {
var iframe = this.getIFrameEl();
var data = { action: "edit", id: row.ID };
iframe.contentWindow.SetData(data);
},
ondestroy: function (action) {
}
});
} else {
}
}
|
|