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

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

Signed-off-by: N@ge-yafang <geyafang@huawei.com>
上级 26f9b691
......@@ -11,7 +11,7 @@
## 导入模块
```js
```ts
import DataShareResultSet from '@ohos.data.DataShareResultSet';
```
......@@ -19,7 +19,7 @@ import DataShareResultSet from '@ohos.data.DataShareResultSet';
需要通过调用[query](js-apis-data-dataShare.md#query)接口获取DataShareResultSet对象。
```js
```ts
import dataShare from '@ohos.data.dataShare';
import dataSharePredicates from '@ohos.data.dataSharePredicates'
......@@ -76,7 +76,7 @@ goToFirstRow(): boolean
**示例:**
```js
```ts
let isGoTOFirstRow = resultSet.goToFirstRow();
console.info('resultSet.goToFirstRow: ' + isGoTOFirstRow);
```
......@@ -97,7 +97,7 @@ goToLastRow(): boolean
**示例:**
```js
```ts
let isGoToLastRow = resultSet.goToLastRow();
console.info('resultSet.goToLastRow: ' + isGoToLastRow);
```
......@@ -118,7 +118,7 @@ goToNextRow(): boolean
**示例:**
```js
```ts
let isGoToNextRow = resultSet.goToNextRow();
console.info('resultSet.goToNextRow: ' + isGoToNextRow);
```
......@@ -139,7 +139,7 @@ goToPreviousRow(): boolean
**示例:**
```js
```ts
let isGoToPreviousRow = resultSet.goToPreviousRow();
console.info('resultSet.goToPreviousRow: ' + isGoToPreviousRow);
```
......@@ -166,7 +166,7 @@ goTo(offset:number): boolean
**示例:**
```js
```ts
let goToNum = 1;
let isGoTo = resultSet.goTo(goToNum);
console.info('resultSet.goTo: ' + isGoTo);
......@@ -194,7 +194,7 @@ goToRow(position: number): boolean
**示例:**
```js
```ts
let goToRowNum = 2
let isGoToRow = resultSet.goToRow(goToRowNum);
console.info('resultSet.goToRow: ' + isGoToRow);
......@@ -222,7 +222,7 @@ getBlob(columnIndex: number): Uint8Array
**示例:**
```js
```ts
let columnIndex = 1
let goToFirstRow = resultSet.goToFirstRow();
let getBlob = resultSet.getBlob(columnIndex);
......@@ -251,7 +251,7 @@ getString(columnIndex: number): *string*
**示例:**
```js
```ts
let columnIndex = 1
let goToFirstRow = resultSet.goToFirstRow();
let getString = resultSet.getString(columnIndex);
......@@ -280,7 +280,7 @@ getLong(columnIndex: number): number
**示例:**
```js
```ts
let columnIndex = 1
let goToFirstRow = resultSet.goToFirstRow();
let getLong = resultSet.getLong(columnIndex);
......@@ -309,7 +309,7 @@ getDouble(columnIndex: number): number
**示例:**
```js
```ts
let columnIndex = 1
let goToFirstRow = resultSet.goToFirstRow();
let getDouble = resultSet.getDouble(columnIndex);
......@@ -326,7 +326,7 @@ close(): void
**示例:**
```js
```ts
resultSet.close();
```
......@@ -352,7 +352,7 @@ getColumnIndex(columnName: string): number
**示例:**
```js
```ts
let ColumnName = "name"
let getColumnIndex = resultSet.getColumnIndex(ColumnName)
console.info('resultSet.getColumnIndex: ' + getColumnIndex);
......@@ -380,7 +380,7 @@ getColumnName(columnIndex: number): *string*
**示例:**
```js
```ts
let columnIndex = 1
let getColumnName = resultSet.getColumnName(columnIndex)
console.info('resultSet.getColumnName: ' + getColumnName);
......@@ -408,7 +408,7 @@ getDataType(columnIndex: number): DataType
**示例:**
```js
```ts
let columnIndex = 1;
let getDataType = resultSet.getDataType(columnIndex);
console.info('resultSet.getDataType: ' + getDataType);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册