想知道 this.parent; 的区别this.parentApplication; this.parentDocument;
这三个之间有什么区别:
this.parent;
this.parentApplication;
this.parentDocument;
当我在弹出窗口中调用它时。
除此之外:我有一个 tabnavigator 作为自定义组件。当我单击选项卡导航器上的某个按钮时,将显示弹出窗口(标题窗口)。现在我想从 popup(titlewindow) 调用 tabnavigator 中定义的函数。提出一些想法。
What is the difference between these three:
this.parent;
this.parentApplication;
this.parentDocument;
when i call this in a popupWindow.
Addition to this: I have a tabnavigator as a Custom component. When I click some Button on tabnavigator, the popup(titlewindow) will display. Now I want to call a function defined in the tabnavigator from popup(titlewindow). Suggest some ideas.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我不确定 this.parent 但确认 this.parentApplication 和 this.parentDocument
让我们看一个树以便于理解。
1 - ParentDocument:1 - ParentApplication:1
2 - ParentDocument:1 - ParentApplication:1
3 - ParentDocument:1 - ParentApplication:1
4 - ParentDocument:2 - ParentApplication:1
5 - ParentDocument:2 - ParentApplication:1
6 - ParentDocument:2 - ParentApplication:1
7 - ParentDocument:3 - ParentApplication:1
8- ParentDocument:5 - ParentApplication:1
9 -父文档:7 - 父应用程序:1
I am not sure with the this.parent but confirm with this.parentApplication and this.parentDocument
let's take a tree of that for easy understand.
1 - ParentDocument:1 - ParentApplication:1
2 - ParentDocument:1 - ParentApplication:1
3 - ParentDocument:1 - ParentApplication:1
4 - ParentDocument:2 - ParentApplication:1
5 - ParentDocument:2 - ParentApplication:1
6 - ParentDocument:2 - ParentApplication:1
7 - ParentDocument:3 - ParentApplication:1
8- ParentDocument:5 - ParentApplication:1
9 - ParentDocument:7 - ParentApplication:1
从应用程序正在侦听的子弹出窗口生成一个事件。孩子不应该了解父母的任何事情。
Generate an event from your child popup that the application is listening for. Children shouldn't know anything about their parents.