From e4158a4c562009ffdd1f77e5f30538449eda16c3 Mon Sep 17 00:00:00 2001 From: qiang Date: Thu, 21 Jan 2021 18:05:46 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=9B=B4=E6=96=B0=20uni.getSystemInfo?= =?UTF-8?q?=20=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/api/storage/storage.md | 1 + docs/api/system/info.md | 2 ++ 2 files changed, 3 insertions(+) diff --git a/docs/api/storage/storage.md b/docs/api/storage/storage.md index 9ee1c0bed9..d0878d6d93 100644 --- a/docs/api/storage/storage.md +++ b/docs/api/storage/storage.md @@ -224,6 +224,7 @@ uni-app的Storage在不同端的实现不同: - 微信小程序单个 key 允许存储的最大数据长度为 1MB,所有数据存储上限为 10MB。 - 支付宝小程序单条数据转换成字符串后,字符串长度最大200*1024。同一个支付宝用户,同一个小程序缓存总上限为10MB。 - 百度、字节跳动小程序文档未说明大小限制 +- 非App平台清空Storage会导致uni.getSystemInfo获取到的uuid改变 除此之外,其他数据存储方案: - H5端还支持websql、indexedDB、sessionStorage diff --git a/docs/api/system/info.md b/docs/api/system/info.md index 567cc6434a..246675ca31 100644 --- a/docs/api/system/info.md +++ b/docs/api/system/info.md @@ -52,6 +52,7 @@ |wifiEnabled | Wi-Fi 的系统开关 |微信小程序| |safeArea|在竖屏正方向下的安全区域|App、H5、微信小程序| |safeAreaInsets|在竖屏正方向下的安全区域插入位置(2.5.3+)|App、H5、微信小程序| +|uuid|通用唯一识别码|非 App 端清空 Storage 会导致改变| **Tips** - 屏幕高度 = 原生NavigationBar高度(含状态栏高度)+ 可使用窗口高度 + 原生TabBar高度 @@ -143,6 +144,7 @@ uni.getSystemInfo({ |wifiEnabled | Wi-Fi 的系统开关 |微信小程序| |safeArea|在竖屏正方向下的安全区域|App、H5、微信小程序| |safeAreaInsets|在竖屏正方向下的安全区域插入位置(2.5.3+)|App、H5、微信小程序| +|uuid|通用唯一识别码|非 App 端清空 Storage 会导致改变| **Tips** - 使用注意同上getSystemInfo -- GitLab