Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
26f9b691
D
Docs
项目概览
OpenHarmony
/
Docs
1 年多 前同步成功
通知
159
Star
292
Fork
28
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
Docs
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
26f9b691
编写于
8月 10, 2022
作者:
葛
葛亚芳
提交者:
Gitee
8月 10, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update zh-cn/application-dev/reference/apis/js-apis-data-dataSharePredicates.md.
Signed-off-by:
N
@ge-yafang
<
geyafang@huawei.com
>
上级
39d735be
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
31 addition
and
31 deletion
+31
-31
zh-cn/application-dev/reference/apis/js-apis-data-dataSharePredicates.md
...on-dev/reference/apis/js-apis-data-dataSharePredicates.md
+31
-31
未找到文件。
zh-cn/application-dev/reference/apis/js-apis-data-dataSharePredicates.md
浏览文件 @
26f9b691
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
## 导入模块
## 导入模块
```
j
s
```
t
s
import
dataSharePredicates
from
'
@ohos.data.dataSharePredicates
'
;
import
dataSharePredicates
from
'
@ohos.data.dataSharePredicates
'
;
```
```
...
@@ -43,7 +43,7 @@ equalTo(field: string, value: ValueType): DataSharePredicates
...
@@ -43,7 +43,7 @@ equalTo(field: string, value: ValueType): DataSharePredicates
**示例:**
**示例:**
```
j
s
```
t
s
let
predicates
=
new
dataSharePredicates
.
DataSharePredicates
()
let
predicates
=
new
dataSharePredicates
.
DataSharePredicates
()
predicates
.
equalTo
(
"
NAME
"
,
"
Rose
"
)
predicates
.
equalTo
(
"
NAME
"
,
"
Rose
"
)
```
```
...
@@ -73,7 +73,7 @@ notEqualTo(field: string, value: ValueType): DataSharePredicates
...
@@ -73,7 +73,7 @@ notEqualTo(field: string, value: ValueType): DataSharePredicates
**示例:**
**示例:**
```
j
s
```
t
s
let
predicates
=
new
dataSharePredicates
.
DataSharePredicates
()
let
predicates
=
new
dataSharePredicates
.
DataSharePredicates
()
predicates
.
notEqualTo
(
"
NAME
"
,
"
Rose
"
)
predicates
.
notEqualTo
(
"
NAME
"
,
"
Rose
"
)
```
```
...
@@ -96,7 +96,7 @@ beginWrap(): DataSharePredicates
...
@@ -96,7 +96,7 @@ beginWrap(): DataSharePredicates
**示例:**
**示例:**
```
j
s
```
t
s
let
predicates
=
new
dataSharePredicates
.
DataSharePredicates
()
let
predicates
=
new
dataSharePredicates
.
DataSharePredicates
()
predicates
.
equalTo
(
"
NAME
"
,
"
lisi
"
)
predicates
.
equalTo
(
"
NAME
"
,
"
lisi
"
)
.
beginWrap
()
.
beginWrap
()
...
@@ -124,7 +124,7 @@ endWrap(): DataSharePredicates
...
@@ -124,7 +124,7 @@ endWrap(): DataSharePredicates
**示例:**
**示例:**
```
j
s
```
t
s
let
predicates
=
new
dataSharePredicates
.
DataSharePredicates
()
let
predicates
=
new
dataSharePredicates
.
DataSharePredicates
()
predicates
.
equalTo
(
"
NAME
"
,
"
lisi
"
)
predicates
.
equalTo
(
"
NAME
"
,
"
lisi
"
)
.
beginWrap
()
.
beginWrap
()
...
@@ -152,7 +152,7 @@ or(): DataSharePredicates
...
@@ -152,7 +152,7 @@ or(): DataSharePredicates
**示例:**
**示例:**
```
j
s
```
t
s
let
predicates
=
new
dataSharePredicates
.
DataSharePredicates
()
let
predicates
=
new
dataSharePredicates
.
DataSharePredicates
()
predicates
.
equalTo
(
"
NAME
"
,
"
lisi
"
)
predicates
.
equalTo
(
"
NAME
"
,
"
lisi
"
)
.
or
()
.
or
()
...
@@ -177,7 +177,7 @@ and(): DataSharePredicates
...
@@ -177,7 +177,7 @@ and(): DataSharePredicates
**示例:**
**示例:**
```
j
s
```
t
s
let
predicates
=
new
dataSharePredicates
.
DataSharePredicates
()
let
predicates
=
new
dataSharePredicates
.
DataSharePredicates
()
predicates
.
equalTo
(
"
NAME
"
,
"
lisi
"
)
predicates
.
equalTo
(
"
NAME
"
,
"
lisi
"
)
.
and
()
.
and
()
...
@@ -209,7 +209,7 @@ contains(field: string, value: string): DataSharePredicates
...
@@ -209,7 +209,7 @@ contains(field: string, value: string): DataSharePredicates
**示例:**
**示例:**
```
j
s
```
t
s
let
predicates
=
new
dataSharePredicates
.
DataSharePredicates
()
let
predicates
=
new
dataSharePredicates
.
DataSharePredicates
()
predicates
.
contains
(
"
NAME
"
,
"
os
"
)
predicates
.
contains
(
"
NAME
"
,
"
os
"
)
```
```
...
@@ -239,7 +239,7 @@ beginsWith(field: string, value: string): DataSharePredicates
...
@@ -239,7 +239,7 @@ beginsWith(field: string, value: string): DataSharePredicates
**示例:**
**示例:**
```
j
s
```
t
s
let
predicates
=
new
dataSharePredicates
.
DataSharePredicates
()
let
predicates
=
new
dataSharePredicates
.
DataSharePredicates
()
predicates
.
beginsWith
(
"
NAME
"
,
"
os
"
)
predicates
.
beginsWith
(
"
NAME
"
,
"
os
"
)
```
```
...
@@ -269,7 +269,7 @@ endsWith(field: string, value: string): DataSharePredicates
...
@@ -269,7 +269,7 @@ endsWith(field: string, value: string): DataSharePredicates
**示例:**
**示例:**
```
j
s
```
t
s
let
predicates
=
new
dataSharePredicates
.
DataSharePredicates
()
let
predicates
=
new
dataSharePredicates
.
DataSharePredicates
()
predicates
.
endsWith
(
"
NAME
"
,
"
os
"
)
predicates
.
endsWith
(
"
NAME
"
,
"
os
"
)
```
```
...
@@ -298,7 +298,7 @@ isNull(field: string): DataSharePredicates
...
@@ -298,7 +298,7 @@ isNull(field: string): DataSharePredicates
**示例:**
**示例:**
```
j
s
```
t
s
let
predicates
=
new
dataSharePredicates
.
DataSharePredicates
()
let
predicates
=
new
dataSharePredicates
.
DataSharePredicates
()
predicates
.
isNull
(
"
NAME
"
)
predicates
.
isNull
(
"
NAME
"
)
```
```
...
@@ -327,7 +327,7 @@ isNotNull(field: string): DataSharePredicates
...
@@ -327,7 +327,7 @@ isNotNull(field: string): DataSharePredicates
**示例:**
**示例:**
```
j
s
```
t
s
let
predicates
=
new
dataSharePredicates
.
DataSharePredicates
()
let
predicates
=
new
dataSharePredicates
.
DataSharePredicates
()
predicates
.
isNotNull
(
"
NAME
"
)
predicates
.
isNotNull
(
"
NAME
"
)
```
```
...
@@ -357,7 +357,7 @@ like(field: string, value: string): DataSharePredicates
...
@@ -357,7 +357,7 @@ like(field: string, value: string): DataSharePredicates
**示例:**
**示例:**
```
j
s
```
t
s
let
predicates
=
new
dataSharePredicates
.
DataSharePredicates
()
let
predicates
=
new
dataSharePredicates
.
DataSharePredicates
()
predicates
.
like
(
"
NAME
"
,
"
%os%
"
)
predicates
.
like
(
"
NAME
"
,
"
%os%
"
)
```
```
...
@@ -387,7 +387,7 @@ unlike(field: string, value: string): DataSharePredicates
...
@@ -387,7 +387,7 @@ unlike(field: string, value: string): DataSharePredicates
**示例:**
**示例:**
```
j
s
```
t
s
let
predicates
=
new
dataSharePredicates
.
DataSharePredicates
()
let
predicates
=
new
dataSharePredicates
.
DataSharePredicates
()
predicates
.
unlike
(
"
NAME
"
,
"
%os%
"
)
predicates
.
unlike
(
"
NAME
"
,
"
%os%
"
)
```
```
...
@@ -417,7 +417,7 @@ glob(field: string, value: string): DataSharePredicates
...
@@ -417,7 +417,7 @@ glob(field: string, value: string): DataSharePredicates
**示例:**
**示例:**
```
j
s
```
t
s
let
predicates
=
new
dataSharePredicates
.
DataSharePredicates
()
let
predicates
=
new
dataSharePredicates
.
DataSharePredicates
()
predicates
.
glob
(
"
NAME
"
,
"
?h*g
"
)
predicates
.
glob
(
"
NAME
"
,
"
?h*g
"
)
```
```
...
@@ -448,7 +448,7 @@ between(field: string, low: ValueType, high: ValueType): DataSharePredicates
...
@@ -448,7 +448,7 @@ between(field: string, low: ValueType, high: ValueType): DataSharePredicates
**示例:**
**示例:**
```
j
s
```
t
s
let
predicates
=
new
dataSharePredicates
.
DataSharePredicates
()
let
predicates
=
new
dataSharePredicates
.
DataSharePredicates
()
predicates
.
between
(
"
AGE
"
,
10
,
50
)
predicates
.
between
(
"
AGE
"
,
10
,
50
)
```
```
...
@@ -479,7 +479,7 @@ notBetween(field: string, low: ValueType, high: ValueType): DataSharePredicates
...
@@ -479,7 +479,7 @@ notBetween(field: string, low: ValueType, high: ValueType): DataSharePredicates
**示例:**
**示例:**
```
j
s
```
t
s
let
predicates
=
new
dataSharePredicates
.
DataSharePredicates
()
let
predicates
=
new
dataSharePredicates
.
DataSharePredicates
()
predicates
.
notBetween
(
"
AGE
"
,
10
,
50
)
predicates
.
notBetween
(
"
AGE
"
,
10
,
50
)
```
```
...
@@ -509,7 +509,7 @@ greaterThan(field: string, value: ValueType): DataSharePredicates
...
@@ -509,7 +509,7 @@ greaterThan(field: string, value: ValueType): DataSharePredicates
**示例:**
**示例:**
```
j
s
```
t
s
let
predicates
=
new
dataSharePredicates
.
DataSharePredicates
()
let
predicates
=
new
dataSharePredicates
.
DataSharePredicates
()
predicates
.
greaterThan
(
"
AGE
"
,
10
)
predicates
.
greaterThan
(
"
AGE
"
,
10
)
```
```
...
@@ -539,7 +539,7 @@ lessThan(field: string, value: ValueType): DataSharePredicates
...
@@ -539,7 +539,7 @@ lessThan(field: string, value: ValueType): DataSharePredicates
**示例:**
**示例:**
```
j
s
```
t
s
let
predicates
=
new
dataSharePredicates
.
DataSharePredicates
()
let
predicates
=
new
dataSharePredicates
.
DataSharePredicates
()
predicates
.
lessThan
(
"
AGE
"
,
50
)
predicates
.
lessThan
(
"
AGE
"
,
50
)
```
```
...
@@ -569,7 +569,7 @@ greaterThanOrEqualTo(field: string, value: ValueType): DataSharePredicates
...
@@ -569,7 +569,7 @@ greaterThanOrEqualTo(field: string, value: ValueType): DataSharePredicates
**示例:**
**示例:**
```
j
s
```
t
s
let
predicates
=
new
dataSharePredicates
.
DataSharePredicates
()
let
predicates
=
new
dataSharePredicates
.
DataSharePredicates
()
predicates
.
greaterThanOrEqualTo
(
"
AGE
"
,
10
)
predicates
.
greaterThanOrEqualTo
(
"
AGE
"
,
10
)
```
```
...
@@ -599,7 +599,7 @@ lessThanOrEqualTo(field: string, value: ValueType): DataSharePredicates
...
@@ -599,7 +599,7 @@ lessThanOrEqualTo(field: string, value: ValueType): DataSharePredicates
**示例:**
**示例:**
```
j
s
```
t
s
let
predicates
=
new
dataSharePredicates
.
DataSharePredicates
()
let
predicates
=
new
dataSharePredicates
.
DataSharePredicates
()
predicates
.
lessThanOrEqualTo
(
"
AGE
"
,
50
)
predicates
.
lessThanOrEqualTo
(
"
AGE
"
,
50
)
```
```
...
@@ -628,7 +628,7 @@ orderByAsc(field: string): DataSharePredicates
...
@@ -628,7 +628,7 @@ orderByAsc(field: string): DataSharePredicates
**示例:**
**示例:**
```
j
s
```
t
s
let
predicates
=
new
dataSharePredicates
.
DataSharePredicates
()
let
predicates
=
new
dataSharePredicates
.
DataSharePredicates
()
predicates
.
orderByAsc
(
"
AGE
"
)
predicates
.
orderByAsc
(
"
AGE
"
)
```
```
...
@@ -657,7 +657,7 @@ orderByDesc(field: string): DataSharePredicates
...
@@ -657,7 +657,7 @@ orderByDesc(field: string): DataSharePredicates
**示例:**
**示例:**
```
j
s
```
t
s
let
predicates
=
new
dataSharePredicates
.
DataSharePredicates
()
let
predicates
=
new
dataSharePredicates
.
DataSharePredicates
()
predicates
.
orderByDesc
(
"
AGE
"
)
predicates
.
orderByDesc
(
"
AGE
"
)
```
```
...
@@ -680,7 +680,7 @@ distinct(): DataSharePredicates
...
@@ -680,7 +680,7 @@ distinct(): DataSharePredicates
**示例:**
**示例:**
```
j
s
```
t
s
let
predicates
=
new
dataSharePredicates
.
DataSharePredicates
()
let
predicates
=
new
dataSharePredicates
.
DataSharePredicates
()
predicates
.
equalTo
(
"
NAME
"
,
"
Rose
"
).
distinct
()
predicates
.
equalTo
(
"
NAME
"
,
"
Rose
"
).
distinct
()
```
```
...
@@ -710,7 +710,7 @@ limit(total: number, offset: number): DataSharePredicates
...
@@ -710,7 +710,7 @@ limit(total: number, offset: number): DataSharePredicates
**示例:**
**示例:**
```
j
s
```
t
s
let
predicates
=
new
dataSharePredicates
.
DataSharePredicates
()
let
predicates
=
new
dataSharePredicates
.
DataSharePredicates
()
predicates
.
equalTo
(
"
NAME
"
,
"
Rose
"
).
limit
(
10
,
3
)
predicates
.
equalTo
(
"
NAME
"
,
"
Rose
"
).
limit
(
10
,
3
)
```
```
...
@@ -739,7 +739,7 @@ groupBy(fields: Array<string>): DataSharePredicates
...
@@ -739,7 +739,7 @@ groupBy(fields: Array<string>): DataSharePredicates
**示例:**
**示例:**
```
j
s
```
t
s
let
predicates
=
new
dataSharePredicates
.
DataSharePredicates
()
let
predicates
=
new
dataSharePredicates
.
DataSharePredicates
()
predicates
.
groupBy
([
"
AGE
"
,
"
NAME
"
])
predicates
.
groupBy
([
"
AGE
"
,
"
NAME
"
])
```
```
...
@@ -768,7 +768,7 @@ indexedBy(field: string): DataSharePredicates
...
@@ -768,7 +768,7 @@ indexedBy(field: string): DataSharePredicates
**示例:**
**示例:**
```
j
s
```
t
s
let
predicates
=
new
dataSharePredicates
.
DataSharePredicates
()
let
predicates
=
new
dataSharePredicates
.
DataSharePredicates
()
predicates
.
indexedBy
(
"
SALARY_INDEX
"
)
predicates
.
indexedBy
(
"
SALARY_INDEX
"
)
```
```
...
@@ -798,7 +798,7 @@ in(field: string, value: Array<ValueType>): DataSharePredicates
...
@@ -798,7 +798,7 @@ in(field: string, value: Array<ValueType>): DataSharePredicates
**示例:**
**示例:**
```
j
s
```
t
s
let
predicates
=
new
dataSharePredicates
.
DataSharePredicates
()
let
predicates
=
new
dataSharePredicates
.
DataSharePredicates
()
predicates
.
in
(
"
AGE
"
,
[
18
,
20
])
predicates
.
in
(
"
AGE
"
,
[
18
,
20
])
```
```
...
@@ -828,7 +828,7 @@ notIn(field: string, value: Array<ValueType>): DataSharePredicates
...
@@ -828,7 +828,7 @@ notIn(field: string, value: Array<ValueType>): DataSharePredicates
**示例:**
**示例:**
```
j
s
```
t
s
let
predicates
=
new
dataSharePredicates
.
DataSharePredicates
()
let
predicates
=
new
dataSharePredicates
.
DataSharePredicates
()
predicates
.
notIn
(
"
NAME
"
,
[
"
Lisa
"
,
"
Rose
"
])
predicates
.
notIn
(
"
NAME
"
,
[
"
Lisa
"
,
"
Rose
"
])
```
```
...
@@ -857,7 +857,7 @@ prefixKey(prefix: string): DataSharePredicates
...
@@ -857,7 +857,7 @@ prefixKey(prefix: string): DataSharePredicates
**示例:**
**示例:**
```
j
s
```
t
s
let
predicates
=
new
dataSharePredicates
.
DataSharePredicates
()
let
predicates
=
new
dataSharePredicates
.
DataSharePredicates
()
predicates
.
prefixKey
(
"
NAME
"
)
predicates
.
prefixKey
(
"
NAME
"
)
```
```
...
@@ -886,7 +886,7 @@ inKeys(keys: Array<string>): DataSharePredicates
...
@@ -886,7 +886,7 @@ inKeys(keys: Array<string>): DataSharePredicates
**示例:**
**示例:**
```
j
s
```
t
s
let
predicates
=
new
dataSharePredicates
.
DataSharePredicates
()
let
predicates
=
new
dataSharePredicates
.
DataSharePredicates
()
predicates
.
inKeys
([
"
Lisa
"
,
"
Rose
"
])
predicates
.
inKeys
([
"
Lisa
"
,
"
Rose
"
])
```
```
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录