uni-app 全局变量globalData的使用
1:在App.vue中要这样使用 ,let _this = this在内部函数onShow,onLaunch等生命周期函数中要这样:wx.getStorage({ key: 'phoneNumber', success(res) { _this.$options.globalData.obtainChatAllow = true; _this.$options.globa...
原创
2019-08-15 18:59:21 ·
19870 阅读 ·
4 评论