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

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

原文地址:https://www.cnblogs.com/Sarah119/p/8214639.html