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 0bf871d0b4d18fe2c8a4806994830df07b50e528..f3e4ebbba4467ac2b936bb81bba8956915ba4f64 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 89fb4e51662c962a300e6c76e5ebe74da1897ed6..04ae6c9c446509fd4546c78ceaf1850e18efe61c 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方式作为异步方法。