-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
globalData 在别的文件里怎么用? #31
Comments
this.$wxapp 可以取到app |
我在测试的时候发现其他页面里 this.$wxapp.globalData 取不到,要这样才行 this.$wxapp.$app.globalData |
@jiayx 少年,你试试this.$parent.globalData |
这个可以。。回复好快,多谢了! |
@jiayx 怪github,给我推邮件……我也不想的(摊手) |
@jiayx 另外还有一种方法: |
@Gcaufy OK,了解了,回答的很详细,非常感谢! |
$instance 的api我在官网文档找不到 |
如题
给个例子 谢谢
The text was updated successfully, but these errors were encountered: