提交 8462a199 编写于 作者: W wangwei30043812
上级 a22b5149
...@@ -168,6 +168,7 @@ updateContact(contact: Contact, callback: AsyncCallback<void>): void ...@@ -168,6 +168,7 @@ updateContact(contact: Contact, callback: AsyncCallback<void>): 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<void> ...@@ -242,6 +244,7 @@ updateContact(contact: Contact, attrs?: ContactAttributes): Promise<void>
```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.
先完成此消息的编辑!
想要评论请 注册