diff --git a/zh-cn/application-dev/ability/stage-ability.md b/zh-cn/application-dev/ability/stage-ability.md index 547d21121177473006e621fe9128afb46cd5bdc5..3279ef886f91162ab12c942c3b225be1564f4b86 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();