1、在父窗体中写以下方法:
function department_cancel()
{
<%-- 调用intiForm方法,用于刷新页面--%>
goWithButton('initForm');
}
2、在子窗体中的关闭方法中调用父窗体的department_cancel方法以下:
function close() { var callerWindowObj = window.dialogArguments; callerWindowObj.department_cancel(); self.close(); }