From 8462a1997c274d05442ad41c0e1294b3b117cbdc Mon Sep 17 00:00:00 2001 From: wangwei30043812 Date: Tue, 28 Feb 2023 15:45:37 +0800 Subject: [PATCH] doc Signed-off-by: wangwei30043812 --- zh-cn/application-dev/reference/apis/js-apis-contact.md | 3 +++ 1 file changed, 3 insertions(+) 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 e361f2cfc2..08324b207b 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-contact.md +++ b/zh-cn/application-dev/reference/apis/js-apis-contact.md @@ -168,6 +168,7 @@ updateContact(contact: Contact, callback: AsyncCallback<void>): void ```js contact.updateContact({ + id: 1, name: {fullName: 'xxx'}, phoneNumbers: [{phoneNumber: '138xxxxxxxx'}] }, (err) => { @@ -202,6 +203,7 @@ updateContact(contact: Contact, attrs: ContactAttributes, callback: AsyncCallbac ```js contact.updateContact({ + id: 1, name: {fullName: 'xxx'}, phoneNumbers: [{phoneNumber: '138xxxxxxxx'}] }, { @@ -242,6 +244,7 @@ updateContact(contact: Contact, attrs?: ContactAttributes): Promise<void> ```js let promise = contact.updateContact({ + id: 1, name: {fullName: 'xxx'}, phoneNumbers: [{phoneNumber: '138xxxxxxxx'}] }, { -- GitLab