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

多个页面如何共享同一个pomelo对象,能做到登入一次,跳转到其他页面时也能监听吗? #1030

Open
LinDCheng opened this Issue May 14, 2018 · 4 comments

Comments

Projects
None yet
4 participants
@LinDCheng

LinDCheng commented May 14, 2018

No description provided.

@cpple

This comment has been minimized.

cpple commented May 16, 2018

你可以用子页面的方式实现

@LinDCheng

This comment has been minimized.

LinDCheng commented May 16, 2018

子页面是指用iframe的方式吗?还有官方网站的API怎么调用?

@supperdsj

This comment has been minimized.

supperdsj commented Jul 30, 2018

最挫最简单的办法就是监听localStorage特定值的变化

@shudingbo

This comment has been minimized.

shudingbo commented Sep 16, 2018

整个做成 单页 应用(使用 vue或者 angularjs,或者其它),然后 pomelo 作为全局对象存下来

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment