Windows 下wx.getSystemInfoSync() 获取 screenHeight 异常

发布于 5 年前作者 xiaxue14074 次浏览最后编辑 5 年前来自 issues

Windows微信客户端打开的小程序,screenHeight 和 screenwidth 获取成显示器的数值了,macOS 上获取的数值正常

1 回复
guiying74
guiying741 楼4 年前

你好,请参考文档:https://developers.weixin.qq.com/miniprogram/dev/api/base/system/system-info/wx.getSystemInfoSync.html

screenWidth获取的是屏幕宽度,screeHeight获取的是屏幕高度