diff --git a/zh-cn/application-dev/database/database-mdds-guidelines.md b/zh-cn/application-dev/database/database-mdds-guidelines.md index 7adb61e7f36deadc98b3c00cce05012a9b097375..25ae5e3e11ac6ed129498b21bd83b25a1fbc312e 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{