BootStrap
需求:审核页面提交后,刷新列表页面
解决思路:审核页面 调用 列表页面 的刷新函数
审核成功提示也写在刷新函数上
审核成功后函数
var iframe = $(window.parent.$("iframe[data-id='/beforehand/wholeDepartment/toReviewTargetPage']"));//列表窗口
iframe[0].contentWindow.refresh(msg)
closeItem();
列表页面函数
function refresh(msg){
$.modal.alertSuccess(msg);
$.table.search();
}
EasyUI
var win = parent.$("iframe[title='商品入库']").get(0).contentWindow;//返回ifram页面文档(window)