A页面导航至B页面
需要在B页面调用A页面的方法
借助vuex
pageA:{}
A页面onLoad时:
this.$store.state.pageA = this;
B页面内调用A页面方法:
this.$store.state.pageA.doSth()
A页面导航至B页面
需要在B页面调用A页面的方法
借助vuex
pageA:{}
A页面onLoad时:
this.$store.state.pageA = this;
B页面内调用A页面方法:
this.$store.state.pageA.doSth()
0 个评论
要回复文章请先登录或注册