在onLaunch里通过
wx.getSystemInfo({
success: function (res) {
var windowHeight = res.windowHeight;
console.log(windowHeight) // 566
}
})
在page中
wx.getSystemInfo({
success: function (res) {
var windowHeight = res.windowHeight;
console.log(windowHeight) // 572
}
})
这两个值不一致,6.5.23中不能通过wx.getSystemInfo获取努比亚Z17屏幕宽度##微信小程序开发教程 ...。是为什么呢?
本文网址:http://www.91bianli.com/kaifazhinan/73684.html