如题 function openWin(url,text,winInfo){ var winObj = window.open(url,text,winInfo); var loop = setInterval(function() { if(winObj.closed) { clearInterval(loop); //alert('closed'); parent.location.reload(); //window.location.reload(); 刷新当前页面 } }, 1); }…
function test(){ var winObj = window.open(URL); var loop = setInterval(function(){ if(winObj.closed){ clearInterval(loop); parent.location.reload(); } },1); }…
API地址:http://layer.layui.com/api.html#end 调用END回调方法: end - 层销毁后触发的回调 类型:Function,默认:null 无论是确认还是取消,只要层被销毁了,end都会执行,不携带任何参数. function updateStock(id) { //iframe层 parent.layer.open({ type: 2, title: '修改', shadeClose: false, //点击遮罩关闭 shade: 0.8, area: […
记得上次写过一篇如何弹出页面的文章,好像是2月28号ionic3 Modal组件那一篇,这篇也算那一篇的续集吧!这篇是弹出的页面关闭后刷新父页面的干活!上代码! 弹出页面:(关闭的时候可以传入值,再父页面取到) this.viewCtrl.dismiss(username.value); 父页面: let modal = this.modalCtrl.create(ContactPage);//这个方法表示,当我们新建的模态框被关闭的时候,会跳到这个页面里来,接下来,我们在这个方法里面从新查一遍…
layer.open打开一个新的jsp页面弹框,如何关闭呢? 在新的页面提交完毕之后,关闭并刷新父页面列表. layer.closeAll(); parent.layer.closeAll(); window.parent.location.reload();…
window.open窗口关闭后刷新父窗口代码 window.opener.location.href=window.opener.location.href;window.close();…
项目中使用案例: 父窗体 <s:form namespace="/forexagent" id="listSearchForm" name="theForm"    theme="simple" action="listAgentParametersChangeRecord?funcode=011002005"> ...... <s:textfield cssClass="px1…
父窗口是由两个部分组成,一个html的table,一部分是extjs的gird. 点击grid面板[增加]按钮将会弹出非模态窗口进行新数据的编辑页面 下面是按钮的触发函数代码: var a = window.showModalDialog(url,window,"dialogWidth:900px;status:no;dialogHeight:480px;minimize:no;maximize:no"); if(a>=0){ winReflesh(store,a); }func…
var index = parent.layer.getFrameIndex(window.name); parent.layer.close(index); window.parent.location.reload();//刷新父页面…
https://www.cnblogs.com/jiqing9006/p/5135697.html layer iframe层的使用,传参   父层 <div class="col-xs-4 text-left" style="padding-left: 50px;"><button type="button" class="btn btn-success" onclick="addCategory…