From 579ddadc9442e3ffe5d1352fd3ad2862c19bf43a Mon Sep 17 00:00:00 2001 From: ql Date: Fri, 25 Mar 2022 03:33:47 +0000 Subject: [PATCH] update zh-cn/application-dev/ability/stage-ability.md. Signed-off-by: ql --- zh-cn/application-dev/ability/stage-ability.md | 1 + 1 file changed, 1 insertion(+) diff --git a/zh-cn/application-dev/ability/stage-ability.md b/zh-cn/application-dev/ability/stage-ability.md index 547d211211..3279ef886f 100644 --- a/zh-cn/application-dev/ability/stage-ability.md +++ b/zh-cn/application-dev/ability/stage-ability.md @@ -180,6 +180,7 @@ context.startAbility(want).then((data) => { ``` 从DeviceManager获取指定设备的deviceId,具体示例代码如下: ```ts +import deviceManager from '@ohos.distributedHardware.deviceManager'; function getRemoteDeviceId() { if (typeof dmClass === 'object' && dmClass != null) { var list = dmClass.getTrustedDeviceListSync(); -- GitLab