From f875ac6a2d8db5fac6ba09041ea59de8c951302a Mon Sep 17 00:00:00 2001 From: wufengshan Date: Mon, 25 Apr 2022 22:00:10 +0800 Subject: [PATCH] Signed-off-by: wufengshan Changes to be committed: --- zh-cn/application-dev/database/database-mdds-guidelines.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zh-cn/application-dev/database/database-mdds-guidelines.md b/zh-cn/application-dev/database/database-mdds-guidelines.md index 7adb61e7f3..25ae5e3e11 100644 --- a/zh-cn/application-dev/database/database-mdds-guidelines.md +++ b/zh-cn/application-dev/database/database-mdds-guidelines.md @@ -162,9 +162,9 @@ OpenHarmony系统中的分布式数据服务模块为开发者提供下面几种 // get deviceIds let deviceIds = []; if (devManager != null) { - var deviceList = devManager.getTrustedDeviceListSync(); - for (var i = 0; i < deviceList.length; i++) { - deviceIds[i] = deviceList[i].deviceId; + var devices = devManager.getTrustedDeviceListSync(); + for (var i = 0; i < devices.length; i++) { + deviceIds[i] = devices[i].deviceId; } } try{ -- GitLab