提交 c05cdb15 编写于 作者: W wuyongning 提交者: Cap_W

fixed 6c0d0660 from https://gitee.com/wuyongning/docs_2/pulls/3769

modify resultSet close code
Signed-off-by: Nwuyongning <wuyongning@huawei.com>
上级 7f331b1e
...@@ -391,12 +391,12 @@ close(): void ...@@ -391,12 +391,12 @@ close(): void
- 示例: - 示例:
```js ```js
let predicatesclose = new dataRdb.RdbPredicates("EMPLOYEE") let predicatesClose = new dataRdb.RdbPredicates("EMPLOYEE")
let predicatesclose = rdbStore.query(predicatesclose, ["ID", "NAME", "AGE", "SALARY", "CODES"]) let promiseClose = rdbStore.query(predicatesClose, ["ID", "NAME", "AGE", "SALARY", "CODES"])
promisequerygoPrev.then((resultSet) { promiseClose.then((resultSet) {
resultSet.close() resultSet.close()
}).catch((err) => { }).catch((err) => {
console.log('query failed') console.log('resultset close failed')
}) })
``` ```
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册