let windows_info = uni.getWindowInfo()
let ww = windows_info.windowWidth
let hh = windows_info.windowHeight
// #ifdef APP
windows_info = plus.screen.getCurrentSize();
ww = windows_info.resolutionWidth
hh = windows_info.resolutionHeight
// #endif
console.log("窗口",windows_info)
uni.showModal({
title:'wh',
content:JSON.stringify(windows_info)
})
qq1034673520 (作者)
调试的时候 是全屏显示的,打包安装以后,就是居中显示 两边黑屏,和各自获取到的分辨率一样,其他手机不会
2025-03-04 09:56
qq1034673520 (作者)
是什么问题呀
2025-03-10 11:15