1***@qq.com
1***@qq.com
  • 发布:2020-06-16 19:22
  • 更新:2020-06-16 19:22
  • 阅读:468

导航页面的方法调用

分类:uni-app

A页面导航至B页面
需要在B页面调用A页面的方法
借助vuex

 pageA:{}

A页面onLoad时:

this.$store.state.pageA = this;  

B页面内调用A页面方法:

this.$store.state.pageA.doSth()  
0 关注 分享

要回复文章请先登录注册