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

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

在其他页面顶部引入

const app = getApp()
app.globalData.scene

posted @ 2018-12-07 13:04  Panax  阅读(4312)  评论(0编辑  收藏  举报