要iframe弹窗的form标签内设置 target="_parent"
eg:
<form action="${domain}role/saveRole.html" method="post" onsubmit="return checkAll();" target="_parent"
>
在checkAll()中加入方法
window.opener.parent.location.reload();
eg:
function checkAll(){
var fla = 0;
$("input[name='powerIds']").each(function(){
if($(this).is(":checked")){
fla=1;
};
});
if(fla==0){
return false;
}
window.opener.parent.location.reload();
return true;