它不能用this.setData方法更改值,该方法只能更改data:{}对象(而且在app.js中无法使用该方法),因此用app.globalData.isLogin = true;
How to change the value globalData in app.js and other pages
Guess you like
Origin www.cnblogs.com/wskb/p/11696573.html
Recommended
Ranking