wx.getSystemInfoSync开发者工具和真机获取到的windowHeight不一致?

小程序 文章 2021-02-01 20:41 416 0 全屏看文

AI助手支持GPT4.0

wx.getSystemInfoSync开发者工具和真机获取到的windowHeight不一致?The windowHeight obtained by wx.getSystemInfoSync developer tool and the real machine is inconsistent?

wx.getSystemInfoSync开发者工具和真机获取到的windowHeight不一致?

微信版本8.0.1

基础库版本2.14.4

有2个页面,页面a----windowHeight:812, 页面b-----windowHeight:724

ios真机上获取windowHeight ,

操作步骤:

1.页面a 获取windowHeight为812,

2.跳转页面b 获取windowHeight为724,

3.回到页面a 获取windowHeight为724

开发者工具获取windowHeight一直是正常 正确的值

Wechat version 8.0.1 basic library version 2.14.4 has two pages, page a --- windows height: 812, page B --- win dowHeight:724 ios The operation steps are as follows: 1. Page a obtains the window height as 812; 2. Jump to page B to obtain the window height as 724; 3. Return to page a to obtain the window height as 724; the developer tool obtains the window height as normal and correct

回答:

Can🌴:

请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

brave:

以真机为准,开发者工具 只是模拟 只是模拟 只是模拟!

Vidor、维:Ios 同一个页面 一会812, 一会724 明显有问题呢

-EOF-

AI助手支持GPT4.0