未验证 提交 fe788d8b 编写于 作者: O openharmony_ci 提交者: Gitee

!15106 修改updateContact示例代码,增加id参数

Merge pull request !15106 from wangziming/master
......@@ -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'}]
}, {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册