const app = getApp() app.globalData.scene
小程序之全局变量的设置及使用
原文:https://www.cnblogs.com/panax/p/10082335.html