微信小程序app.js给全局变量globalData赋值
微信小程序app.js 中,从数据库读取登录数据后,想把登录信息变为全局遍历,这里为globalData赋值和其他的页面赋值不同。需要先定义 that=this 之后用that.globalData进行赋值onLaunch: function() { var that = this; wx.request({ url: 'http://www.test.php
原创
2017-07-18 13:58:36 ·
54804 阅读 ·
1 评论