小程序之全局变量的设置及使用

很简单就是app.js 存下变量

在其他页面顶部引入

const app = getApp()
app.globalData.scene

原文地址:https://www.cnblogs.com/panax/p/10082335.html