| 12345678910111213 |
- //app.js
- App({
- SystemInfo: wx.getSystemInfoSync(),
- onLaunch: function() {
- var sysInfo = wx.getSystemInfoSync();
- console.log(sysInfo);
- this.globalData.innerWidth = sysInfo.windowWidth;
- this.globalData.innerHeight = sysInfo.windowHeight;
- },
- globalData: {
- userInfo: null
- }
- })
|