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 e361f2cfc2e84ace608a91f82a2377155d6ac311..08324b207b22d069765e1ab5384614c95af8321a 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'}] }, {