想知道 this.parent; 的区别this.parentApplication; this.parentDocument;

发布于 2024-12-28 17:58:38 字数 251 浏览 2 评论 0原文

这三个之间有什么区别:

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

清晰传感 2025-01-04 17:58:38

我不确定 this.parent 但确认 this.parentApplication 和 this.parentDocument

让我们看一个树以便于理解。

                     1
                    / \
                   2   3
                  /|\   \
                 4 5 6   7
                    \     \
                     8     9

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
                    / \
                   2   3
                  /|\   \
                 4 5 6   7
                    \     \
                     8     9

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

时间你老了 2025-01-04 17:58:38

从应用程序正在侦听的子弹出窗口生成一个事件。孩子不应该了解父母的任何事情。

Generate an event from your child popup that the application is listening for. Children shouldn't know anything about their parents.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文