微信小程序全局存储 uniApp 在App.vue 写上globalData和onShow同级 onShow(){}, globalData:{ } 调用 let app = getApp(); app.globalData={}