Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

通过A链接或是window.open()创建的窗口,父子间如何通信? #109

Open
tom-style opened this issue Aug 2, 2023 · 1 comment

Comments

@tom-style
Copy link

在浏览器上在子窗口用 window.opener 可以访问到父窗口对象,在electron里面要如何操作?

@umbrella22
Copy link
Owner

并不建议在electron中使用a标签或者是open方法打开新的窗口,您可以转用ipc的形式去创建窗口实例,并通过窗口id进行通讯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants