From c58559856bb2644586c591119c0a34b864a6572e Mon Sep 17 00:00:00 2001 From: clevercong Date: Fri, 18 Mar 2022 09:55:58 +0800 Subject: [PATCH] update docs. Signed-off-by: clevercong --- zh-cn/application-dev/reference/apis/js-apis-contact.md | 2 +- zh-cn/application-dev/reference/apis/js-apis-sim.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-contact.md b/zh-cn/application-dev/reference/apis/js-apis-contact.md index 0bf871d0b4..f3e4ebbba4 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-contact.md +++ b/zh-cn/application-dev/reference/apis/js-apis-contact.md @@ -776,7 +776,7 @@ queryContacts(attrs: ContactAttributes, callback: AsyncCallback<Array<Cont ## contact.queryContacts -queryContacts(holder: Holder, attrs: ContactAttributes, callback: AsyncCallback<Array<Contact>>) +queryContacts(holder: Holder, attrs: ContactAttributes, callback: AsyncCallback<Array<Contact>>): void 查询所有联系人,使用callback方式作为异步方法。 diff --git a/zh-cn/application-dev/reference/apis/js-apis-sim.md b/zh-cn/application-dev/reference/apis/js-apis-sim.md index 89fb4e5166..04ae6c9c44 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-sim.md +++ b/zh-cn/application-dev/reference/apis/js-apis-sim.md @@ -140,7 +140,7 @@ sim.hasOperatorPrivileges(0, (err, data) => { ## sim.hasOperatorPrivileges7+ -hasOperatorPrivileges(slotId: number): Promise +hasOperatorPrivileges(slotId: number): Promise 检查应用(调用者)是否已被授予运营商权限,使用Promise方式作为异步方法。 -- GitLab