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

请问这个支持iframe元素向父元素通信吗? #26

Open
poppyLuo opened this issue Jan 25, 2016 · 1 comment
Open

请问这个支持iframe元素向父元素通信吗? #26

poppyLuo opened this issue Jan 25, 2016 · 1 comment

Comments

@poppyLuo
Copy link

请问这个支持iframe元素向父元素通信吗?

@refanbanzhang
Copy link

refanbanzhang commented May 3, 2017

这个需求才是重点啊,一般情况下都是父窗口需要监听iframe中的事件啊

var messenger = new Messenger('son', 'projectName');
messenger.addTarget(window.parent, 'Parent');
messenger.send('haha');`

`

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