ThinkCMF5的弹框子页面操作关闭及父页面刷新
function getPaike(id){ openIframeLayer("{:url('classroom/addpaike')}?id=" + id , "", { area: ['880px', '600px'], btn: ['确定', '取消'], }) }
addpaike.html
<div class="form-group"> <div class="col-sm-offset-2 col-sm-10"> <button type="submit" class="btn btn-primary" onclick="save({$id})">保存</button> </div> </div>
function save(id){ let time1 = setInterval(function(){
//父级弹框关闭 parent.layer.closeAll();
//父级页面刷新
parent.location.reload();
},500); }
多多关照,多多指教,共同成长
---嘉煠