使用jQuery,如何在父窗口的子窗口中触发事件?

| 基本上我想在父窗口中调用一个函数。我以为我可以将事件处理程序挂接到我想在父级中运行的函数上,...对此有何想法?     
已邀请:
在子窗口中使用
parent.MyFunction()
    
window.opener.parent.function()可以解决问题,但是在我的情况下,我需要保留window的副本,因为使用setTimeout时上下文发生了变化。
    var _window = window;
    setTimeout( function(){             
        //location.reload(true);
        _window.opener.invite_child_response();
        _window.close();                    
    },5000);
    

要回复问题请先登录注册