From 720bc12751681a3423814092e94c0c8189ef1532 Mon Sep 17 00:00:00 2001 From: king_he <6384784@qq.com> Date: Tue, 17 May 2022 09:20:53 +0000 Subject: [PATCH] update en/application-dev/reference/apis/js-apis-document.md. Signed-off-by: king_he <6384784@qq.com> --- .../reference/apis/js-apis-document.md | 48 +++++++++---------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/en/application-dev/reference/apis/js-apis-document.md b/en/application-dev/reference/apis/js-apis-document.md index 0f2de0b217..4494391b9b 100644 --- a/en/application-dev/reference/apis/js-apis-document.md +++ b/en/application-dev/reference/apis/js-apis-document.md @@ -13,21 +13,21 @@ import document from '@ohos.document'; choose(type:string[]): Promise<string> -Chooses a file of the specified type using the file manager. This method uses a promise to return the result. +Chooses a file of the specified type using the file manager. This API uses a promise to return the result. **System capability**: SystemCapability.FileManagement.File.FileIO - 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 - | Type | Description | + | Type | Description | | --------------------- | -------------- | - | Promise<string> | Promise used to return the result. An error code is returned.| + | Promise<string> | Promise used to return the result. An error code is returned. | - Example @@ -38,15 +38,15 @@ Chooses a file of the specified type using the file manager. This method uses a choose(callback:AsyncCallback<string>): void -Chooses a file using the file manager. This method uses an asynchronous callback to return the result. +Chooses a file using the file manager. This API uses an asynchronous callback to return the result. **System capability**: SystemCapability.FileManagement.File.FileIO - Parameters - | Name | Type | Mandatory| Description | + | Name | Type | Mandatory | Description | | -------- | --------------------------- | ---- | ---------------------------- | - | callback | AsyncCallback<string> | Yes | Callback used to return the result. An error code is returned.| + | callback | AsyncCallback<string> | Yes | Callback used to return the result. An error code is returned. | - Example @@ -59,16 +59,16 @@ Chooses a file using the file manager. This method uses an asynchronous callback choose(type:string[], callback:AsyncCallback<string>): void -Chooses a file of the specified type using the file manager. This method uses an asynchronous callback to return the result. +Chooses a file of the specified type using the file manager. This API uses an asynchronous callback to return the result. **System capability**: SystemCapability.FileManagement.File.FileIO - Parameters - | Name | Type | Mandatory| Description | + | Name | Type | Mandatory | Description | | -------- | --------------------------- | ---- | ---------------------------- | - | type | string[] | No | Type of the file to choose.| - | callback | AsyncCallback<string> | Yes | Callback used to return the result. An error code is returned.| + | type | string[] | No | Type of the file to choose. | + | callback | AsyncCallback<string> | Yes | Callback used to return the result. An error code is returned. | - Example @@ -82,22 +82,22 @@ Chooses a file of the specified type using the file manager. This method uses an show(url:string, type:string):Promise<number> -Opens a file. This method uses a promise to return the result. +Opens a file. This API uses a promise to return the result. **System capability**: SystemCapability.FileManagement.File.FileIO - Parameters - | Name| Type | Mandatory| Description | + | Name | Type | Mandatory | Description | | ---- | ------ | ---- | ---------------------------- | - | uri | string | Yes | URI of the file to open.| - | type | string | Yes | Type of the file to open.| + | uri | string | Yes | URI of the file to open. | + | type | string | Yes | Type of the file to open. | - Return value - | Type | Description | + | Type | Description | | --------------------- | ------------ | - | Promise<void> | Promise used to return the result. An error code is returned.| + | Promise<void> | Promise used to return the result. An error code is returned. | - Example @@ -109,17 +109,17 @@ Opens a file. This method uses a promise to return the result. show(url:string, type:string, callback:AsyncCallback<void>): void -Opens a file. This method uses an asynchronous callback to return the result. +Opens a file. This API uses an asynchronous callback to return the result. **System capability**: SystemCapability.FileManagement.File.FileIO - Parameters - | Name | Type | Mandatory| Description | + | Name | Type | Mandatory | Description | | -------- | --------------------------- | ---- | ---------------------------- | - | uri | string | Yes | URI of the file to open.| - | type | string | Yes | Type of the file to open.| - | callback | AsyncCallback<void> | Yes | Callback used to return the result. An error code is returned. | + | uri | string | Yes | URI of the file to open. | + | type | string | Yes | Type of the file to open. | + | callback | AsyncCallback<void> | Yes | Callback used to return the result. An error code is returned. | - Example @@ -127,4 +127,4 @@ Opens a file. This method uses an asynchronous callback to return the result. await document.show(uri, type, function(err) { //do something }); - ``` + ``` \ No newline at end of file -- GitLab