From c56d6859b371d697a38454945a2e356d6970d4ba Mon Sep 17 00:00:00 2001 From: yanyilin Date: Fri, 28 Jun 2024 17:30:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84getDeviceInfo=E3=80=81getWind?= =?UTF-8?q?owInfo=E6=B3=A8=E6=84=8F=E4=BA=8B=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/api/get-device-info.md | 7 +++++-- docs/api/get-window-info.md | 6 +++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/docs/api/get-device-info.md b/docs/api/get-device-info.md index 3cce095e..0a0c098d 100644 --- a/docs/api/get-device-info.md +++ b/docs/api/get-device-info.md @@ -8,8 +8,11 @@ -- 获取OAID、AndroidID等其他设备信息,[见插件市场](https://ext.dcloud.net.cn/search?q=oaid&orderBy=Relevance&uni-appx=1) -- romName值域候选 [详见](./get-system-info.md#romName) +::: warning 注意事项 +- 获取OAID、AndroidID等其他设备信息,[见插件市场](https://ext.dcloud.net.cn/search?q=oaid&orderBy=Relevance&uni-appx=1) +- romName值域候选 [详见](./get-system-info.md#romName) +- app平台devicePixelRatio属性,HBuilderX4.22及以下版本类型为string,HBuilderX4.23版本调整为number +::: diff --git a/docs/api/get-window-info.md b/docs/api/get-window-info.md index 9390a46f..608d1c78 100644 --- a/docs/api/get-window-info.md +++ b/docs/api/get-window-info.md @@ -8,9 +8,9 @@ -## 注意事项 - -* Android端的`windowHeight`属性是有时机的考量的,如果在全局作用域获取`windowHeight`,有可能当前Activity还未加载,所以导航栏和Tabbar的高度是不会计算进去的,稳妥起见,建议在`onReady`或者`onPageShow`内获取`windowheight`。 +::: warning 注意事项 +- Android端的`windowHeight`属性是有时机的考量的,如果在全局作用域获取`windowHeight`,有可能当前Activity还未加载,所以导航栏和Tabbar的高度是不会计算进去的,稳妥起见,建议在`onReady`或者`onPageShow`内获取`windowheight`。 +::: -- GitLab