左边为Tree,右边一个list,添加一条记录时,如何使得整个框架刷新呢?
网上好多关于关闭子窗口刷新父窗口的方法。而这个方法将不能够使得tree也得到刷新。
下面的这种方法能够使整个父框架刷新
<script>
if('${AlertMessage}'!='')
{
alert('${AlertMessage}');
window.parent.Main.location.reload();
//window.opener.location.href=window.opener.location.href; 注释的这几种方法都是刷新子frame的,不能够刷新整个
//self.opener.location.reload();
window.close();
}
</script>