You need to sign in or sign up before continuing.
未验证 提交 a06b237b 编写于 作者: O openharmony_ci 提交者: Gitee

!4267 【OpenHarmony开源贡献者计划2022】js-apis-document.md 相关格式及表达问题

Merge pull request !4267 from king_he/0523-e
# File Interaction # File Interaction
> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**<br> > **NOTE**<br>
> - The initial APIs of this module are supported since API version 6. Newly added APIs will be marked with a superscript to indicate their earliest API version. > - The initial APIs of this module are supported since API version 6. Newly added APIs will be marked with a superscript to indicate their earliest API version.
> - The APIs of this module will be deprecated and are not recommended for use. An exception will be thrown if any of the APIs is called. > - The APIs of this module will be deprecated and are not recommended for use. An exception will be thrown if any of the APIs is called.
## Modules to Import ## Modules to Import
...@@ -19,15 +19,15 @@ Chooses a file of the specified type using the file manager. This API uses a pro ...@@ -19,15 +19,15 @@ Chooses a file of the specified type using the file manager. This API uses a pro
- Parameters - Parameters
| Name| Type | Mandatory | Description | | Name| Type | Mandatory | Description |
| ------ | ------ | ---- | ---------------------------- | | ------ | ------ | ---- | ---------------------------- |
| type | string[] | No | Type of the file to choose. | | type | string[] | No | Type of the file to choose. |
- Return value - Return value
| Type | Description | | Type | Description |
| --------------------- | -------------- | | --------------------- | -------------- |
| Promise&lt;string&gt; | Promise used to return the result. An error code is returned. | | Promise&lt;string&gt; | Promise used to return the result. An error code is returned. |
- Example - Example
...@@ -44,9 +44,9 @@ Chooses a file using the file manager. This API uses an asynchronous callback to ...@@ -44,9 +44,9 @@ Chooses a file using the file manager. This API uses an asynchronous callback to
- Parameters - Parameters
| Name | Type | Mandatory | Description | | Name | Type | Mandatory | Description |
| -------- | --------------------------- | ---- | ---------------------------- | | -------- | --------------------------- | ---- | ---------------------------- |
| callback | AsyncCallback&lt;string&gt; | Yes | Callback used to return the result. An error code is returned. | | callback | AsyncCallback&lt;string&gt; | Yes | Callback used to return the result. An error code is returned. |
- Example - Example
...@@ -65,10 +65,10 @@ Chooses a file of the specified type using the file manager. This API uses an as ...@@ -65,10 +65,10 @@ Chooses a file of the specified type using the file manager. This API uses an as
- Parameters - Parameters
| Name | Type | Mandatory | Description | | Name | Type | Mandatory | Description |
| -------- | --------------------------- | ---- | ---------------------------- | | -------- | --------------------------- | ---- | ---------------------------- |
| type | string[] | No | Type of the file to choose. | | type | string[] | No | Type of the file to choose. |
| callback | AsyncCallback&lt;string&gt; | Yes | Callback used to return the result. An error code is returned. | | callback | AsyncCallback&lt;string&gt; | Yes | Callback used to return the result. An error code is returned. |
- Example - Example
...@@ -88,16 +88,16 @@ Opens a file. This API uses a promise to return the result. ...@@ -88,16 +88,16 @@ Opens a file. This API uses a promise to return the result.
- Parameters - Parameters
| Name | Type | Mandatory | Description | | Name | Type | Mandatory | Description |
| ---- | ------ | ---- | ---------------------------- | | ---- | ------ | ---- | ---------------------------- |
| uri | string | Yes | URI of the file to open. | | uri | string | Yes | URI of the file to open. |
| type | string | Yes | Type of the file to open. | | type | string | Yes | Type of the file to open. |
- Return value - Return value
| Type | Description | | Type | Description |
| --------------------- | ------------ | | --------------------- | ------------ |
| Promise&lt;void&gt; | Promise used to return the result. An error code is returned. | | Promise&lt;void&gt; | Promise used to return the result. An error code is returned. |
- Example - Example
...@@ -115,11 +115,11 @@ Opens a file. This API uses an asynchronous callback to return the result. ...@@ -115,11 +115,11 @@ Opens a file. This API uses an asynchronous callback to return the result.
- Parameters - Parameters
| Name | Type | Mandatory | Description | | Name | Type | Mandatory | Description |
| -------- | --------------------------- | ---- | ---------------------------- | | -------- | --------------------------- | ---- | ---------------------------- |
| uri | string | Yes | URI of the file to open. | | uri | string | Yes | URI of the file to open. |
| type | string | Yes | Type of the file to open. | | type | string | Yes | Type of the file to open. |
| callback | AsyncCallback&lt;void&gt; | Yes | Callback used to return the result. An error code is returned. | | callback | AsyncCallback&lt;void&gt; | Yes | Callback used to return the result. An error code is returned. |
- Example - Example
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册