Windows 下wx.getSystemInfoSync() 获取 screenHeight 异常
发布于 4 年前 作者 xiaxue 13765 次浏览 来自 官方Issues

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

1 回复

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

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

回到顶部