未验证 提交 a061ab9b 编写于 作者: 葛亚芳 提交者: Gitee

update en/application-dev/reference/apis/js-apis-data-rdb.md.

Signed-off-by: N葛亚芳 <geyafang@huawei.com>
上级 de948e2f
...@@ -1529,9 +1529,9 @@ Queries data from the RDB store of a remote device based on specified conditions ...@@ -1529,9 +1529,9 @@ Queries data from the RDB store of a remote device based on specified conditions
**Example** **Example**
```js ```js
let predicates = new rdb.RdbPredicates('EPLOYEE') let predicates = new rdb.RdbPredicates('EMPLOYEE')
predicates.greaterThan("id", 0) predicates.greaterThan("id", 0)
rdbStore.remoteQuery("deviceId", "EPLOYEE", predicates, function(err, resultSet){ rdbStore.remoteQuery("deviceId", "EMPLOYEE", predicates, function(err, resultSet){
if (err) { if (err) {
console.info("Failed to remoteQuery, err: " + err) console.info("Failed to remoteQuery, err: " + err)
return return
...@@ -1567,7 +1567,7 @@ Queries data from the RDB store of a remote device based on specified conditions ...@@ -1567,7 +1567,7 @@ Queries data from the RDB store of a remote device based on specified conditions
**Example** **Example**
```js ```js
let predicates = new rdb.RdbPredicates('EPLOYEE') let predicates = new rdb.RdbPredicates('EMPLOYEE')
predicates.greaterThan("id", 0) predicates.greaterThan("id", 0)
let promise = rdbStore.remoteQuery("deviceId", "EMPLOYEE", predicates) let promise = rdbStore.remoteQuery("deviceId", "EMPLOYEE", predicates)
promise.then((resultSet) => { promise.then((resultSet) => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册