子窗體調用父窗體的方法

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