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

在weex中有this.$getConfig()获得系统的配置,比如env、bundleUrl,在rax中如何获取? #112

Closed
Mryong opened this issue Feb 12, 2017 · 3 comments

Comments

@Mryong
Copy link

Mryong commented Feb 12, 2017

在weex中有this.$getConfig()获得系统的配置,比如env、bundleUrl,在rax中如何获取?

@boiawang
Copy link
Member

通过 window. navigator 可以取到 envwindow.location 可以取到 bundleUrl

@Mryong
Copy link
Author

Mryong commented Feb 12, 2017

@boiawang
iOS中Weex报错,找不到window对象,难道我要把Weex升级下?
[error]WXMonitor.m:190, [undefined:122:51] ReferenceError: Can't find variable: window

@boiawang
Copy link
Member

@Mryong 需要升级 weex 到 0.9.4+

@yuanyan yuanyan closed this as completed Feb 15, 2017
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

3 participants