小程序中关于获取app实例与当前组件

1、getApp()来获取 App 实例
2、getCurrentPages()获取前页面栈

posted @ 2018-01-06 16:46  Sarah119  Views(1983)  Comments(0)    收藏  举报