微信小程序app.js給全局變量globalData賦值

微信小程序app.js 中,從數據庫讀取登陸數據後,想把登陸信息變爲全局遍歷,這裏爲globalData賦值和其餘的頁面賦值不一樣。php 須要先定義 that=this  以後用that.globalData進行賦值html onLaunch: function() { var that = this; wx.request({ url: 'http://www.te
相關文章
相關標籤/搜索