未验证 提交 1b66ba34 编写于 作者: Z zengyawen 提交者: Gitee

update zh-cn/application-dev/reference/apis/js-apis-contact.md.

Signed-off-by: Nzengyawen <zengyawen1@huawei.com>
上级 246a8c7e
...@@ -1492,7 +1492,7 @@ queryKey(id: number, holder?: Holder): Promise&lt;string&gt; ...@@ -1492,7 +1492,7 @@ queryKey(id: number, holder?: Holder): Promise&lt;string&gt;
使用JSON格式创建联系人数据: 使用JSON格式创建联系人数据:
```json ```js
let myContact = { let myContact = {
phoneNumbers: [{ phoneNumbers: [{
phoneNumber: "138xxxxxxxx" phoneNumber: "138xxxxxxxx"
...@@ -1538,7 +1538,7 @@ myContact.phoneNumbers = [phoneNumber]; ...@@ -1538,7 +1538,7 @@ myContact.phoneNumbers = [phoneNumber];
使用JSON格式创建数据: 使用JSON格式创建数据:
```json ```js
let contactAttributes = { let contactAttributes = {
attributes: [ attributes: [
contact.Attribute.ATTR_EMAIL, contact.Attribute.ATTR_EMAIL,
...@@ -1585,7 +1585,7 @@ contactAttributes.attributes = ["ATTR_EMAIL"]; ...@@ -1585,7 +1585,7 @@ contactAttributes.attributes = ["ATTR_EMAIL"];
使用JSON格式创建数据: 使用JSON格式创建数据:
```json ```js
let attributes = [contact.Attribute.ATTR_EMAIL, contact.Attribute.ATTR_NAME, contact.Attribute.ATTR_PHONE]; let attributes = [contact.Attribute.ATTR_EMAIL, contact.Attribute.ATTR_NAME, contact.Attribute.ATTR_PHONE];
``` ```
...@@ -1621,7 +1621,7 @@ let attributes = [contact.Attribute.ATTR_EMAIL, contact.Attribute.ATTR_NAME, con ...@@ -1621,7 +1621,7 @@ let attributes = [contact.Attribute.ATTR_EMAIL, contact.Attribute.ATTR_NAME, con
使用JSON格式创建数据: 使用JSON格式创建数据:
```json ```js
let email = { let email = {
email: "xxx@email.com", email: "xxx@email.com",
displayName: "displayName" displayName: "displayName"
...@@ -1654,7 +1654,7 @@ email.email = "xxx@email.com"; ...@@ -1654,7 +1654,7 @@ email.email = "xxx@email.com";
使用JSON格式创建数据: 使用JSON格式创建数据:
```json ```js
let holder = { let holder = {
holderId: 0 holderId: 0
}; };
...@@ -1698,7 +1698,7 @@ holder.holderId = 0; ...@@ -1698,7 +1698,7 @@ holder.holderId = 0;
使用JSON格式创建数据: 使用JSON格式创建数据:
```json ```js
let event = { let event = {
eventDate: "xxxxxx" eventDate: "xxxxxx"
}; };
...@@ -1728,7 +1728,7 @@ event.eventDate = "xxxxxx"; ...@@ -1728,7 +1728,7 @@ event.eventDate = "xxxxxx";
使用JSON格式创建数据: 使用JSON格式创建数据:
```json ```js
let group = { let group = {
groupId: 1, groupId: 1,
title: "title" title: "title"
...@@ -1777,7 +1777,7 @@ group.title = "title"; ...@@ -1777,7 +1777,7 @@ group.title = "title";
使用JSON格式创建数据: 使用JSON格式创建数据:
```json ```js
let imAddress = { let imAddress = {
imAddress: "imAddress", imAddress: "imAddress",
labelName: "labelName" labelName: "labelName"
...@@ -1816,7 +1816,7 @@ imAddress.imAddress = "imAddress"; ...@@ -1816,7 +1816,7 @@ imAddress.imAddress = "imAddress";
使用JSON格式创建数据: 使用JSON格式创建数据:
```json ```js
let name = { let name = {
familyName: "familyName", familyName: "familyName",
fullName: "fullName" fullName: "fullName"
...@@ -1847,7 +1847,7 @@ name.fullName = "fullName"; ...@@ -1847,7 +1847,7 @@ name.fullName = "fullName";
使用JSON格式创建数据: 使用JSON格式创建数据:
```json ```js
let nickName = { let nickName = {
nickName: "nickName" nickName: "nickName"
}; };
...@@ -1876,7 +1876,7 @@ nickName.nickName = "nickName"; ...@@ -1876,7 +1876,7 @@ nickName.nickName = "nickName";
使用JSON格式创建数据: 使用JSON格式创建数据:
```json ```js
let note = { let note = {
noteContent: "noteContent" noteContent: "noteContent"
}; };
...@@ -1906,7 +1906,7 @@ note.noteContent = "noteContent"; ...@@ -1906,7 +1906,7 @@ note.noteContent = "noteContent";
使用JSON格式创建数据: 使用JSON格式创建数据:
```json ```js
let organization = { let organization = {
name: "name", name: "name",
title: "title" title: "title"
...@@ -1969,7 +1969,7 @@ organization.title = "title"; ...@@ -1969,7 +1969,7 @@ organization.title = "title";
使用JSON格式创建数据: 使用JSON格式创建数据:
```json ```js
let phoneNumber = { let phoneNumber = {
phoneNumber: "138xxxxxxxx", phoneNumber: "138xxxxxxxx",
labelId: contact.PhoneNumber.NUM_HOME labelId: contact.PhoneNumber.NUM_HOME
...@@ -1999,7 +1999,7 @@ phoneNumber.phoneNumber = "138xxxxxxxx"; ...@@ -1999,7 +1999,7 @@ phoneNumber.phoneNumber = "138xxxxxxxx";
使用JSON格式创建数据: 使用JSON格式创建数据:
```json ```js
let portrait = { let portrait = {
uri: "uri" uri: "uri"
}; };
...@@ -2050,7 +2050,7 @@ portrait.uri = "uri"; ...@@ -2050,7 +2050,7 @@ portrait.uri = "uri";
使用JSON格式创建数据: 使用JSON格式创建数据:
```json ```js
let postalAddress = { let postalAddress = {
city: "city" city: "city"
}; };
...@@ -2105,7 +2105,7 @@ postalAddress.city = "city"; ...@@ -2105,7 +2105,7 @@ postalAddress.city = "city";
使用JSON格式创建数据: 使用JSON格式创建数据:
```json ```js
let relation = { let relation = {
relationName: "relationName", relationName: "relationName",
labelId: contact.Relation.RELATION_ASSISTANT labelId: contact.Relation.RELATION_ASSISTANT
...@@ -2150,7 +2150,7 @@ relation.labelId = contact.Relation.RELATION_ASSISTANT; ...@@ -2150,7 +2150,7 @@ relation.labelId = contact.Relation.RELATION_ASSISTANT;
使用JSON格式创建数据: 使用JSON格式创建数据:
```json ```js
var sipAddress = { var sipAddress = {
sipAddress: "sipAddress" sipAddress: "sipAddress"
}; };
...@@ -2179,7 +2179,7 @@ sipAddress.sipAddress = "sipAddress"; ...@@ -2179,7 +2179,7 @@ sipAddress.sipAddress = "sipAddress";
使用JSON格式创建数据: 使用JSON格式创建数据:
```json ```js
let website = { let website = {
website: "website" website: "website"
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册