1、在父窗體中寫以下方法:
function department_cancel()
{
<%-- 調用intiForm方法,用於刷新頁面--%>
goWithButton('initForm');
}
2、在子窗體中的關閉方法中調用父窗體的department_cancel方法以下:
function close() { var callerWindowObj = window.dialogArguments; callerWindowObj.department_cancel(); self.close(); }