提交 0435821e 编写于 作者: W w00636648

fix doc

Signed-off-by: Nw00636648 <wangziming14@huawei.com>
上级 42674e61
...@@ -168,6 +168,7 @@ updateContact(contact: Contact, callback: AsyncCallback&lt;void&gt;): void ...@@ -168,6 +168,7 @@ updateContact(contact: Contact, callback: AsyncCallback&lt;void&gt;): void
```js ```js
contact.updateContact({ contact.updateContact({
id: 1,
name: {fullName: 'xxx'}, name: {fullName: 'xxx'},
phoneNumbers: [{phoneNumber: '138xxxxxxxx'}] phoneNumbers: [{phoneNumber: '138xxxxxxxx'}]
}, (err) => { }, (err) => {
...@@ -202,6 +203,7 @@ updateContact(contact: Contact, attrs: ContactAttributes, callback: AsyncCallbac ...@@ -202,6 +203,7 @@ updateContact(contact: Contact, attrs: ContactAttributes, callback: AsyncCallbac
```js ```js
contact.updateContact({ contact.updateContact({
id: 1,
name: {fullName: 'xxx'}, name: {fullName: 'xxx'},
phoneNumbers: [{phoneNumber: '138xxxxxxxx'}] phoneNumbers: [{phoneNumber: '138xxxxxxxx'}]
}, { }, {
...@@ -242,6 +244,7 @@ updateContact(contact: Contact, attrs?: ContactAttributes): Promise&lt;void&gt; ...@@ -242,6 +244,7 @@ updateContact(contact: Contact, attrs?: ContactAttributes): Promise&lt;void&gt;
```js ```js
let promise = contact.updateContact({ let promise = contact.updateContact({
id: 1,
name: {fullName: 'xxx'}, name: {fullName: 'xxx'},
phoneNumbers: [{phoneNumber: '138xxxxxxxx'}] phoneNumbers: [{phoneNumber: '138xxxxxxxx'}]
}, { }, {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册