- 注册时间
- 2016-12-22
- 最后登录
- 1970-1-1
- 阅读权限
- 10
- 积分
- 64
- 精华
- 0
- 帖子
- 22

|
dforce 发表于 2016-12-23 14:59 
看起来并没有什么复杂的页面关系,你做个例子上来我看看为什么关不掉
<a id="enterId" class="mini-button"
onclick="enteringIDcard();">录入</a>
function enteringIDcard() {
mini.open({
url : "enterIDcard.html",
showMaxButton : false,
title : "录入",
width : 260,
height : 200,
ondestroy : function(action) {
alert(action)
if (action == "ok") {
miniWindow.hide();
var iframe = this.getIFrameEl();
var data = iframe.contentWindow.GetData();
data = mini.clone(data);
idNo.setData(data);
}
if (action == "cancel") {
idNo.setData(" ");
}
}
});
}
打开后的页面, 关闭代码就是刚才那个 |
|