diff --git a/en/application-dev/reference/apis/js-apis-document.md b/en/application-dev/reference/apis/js-apis-document.md index 0f2de0b217af39ab8b7506db1c92cee141c3bde3..4494391b9b414c652e5d7855704f5b0ff115c9ef 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