From f36bcb9d776623439cfaac628483f303101664a1 Mon Sep 17 00:00:00 2001 From: zhouzhichao Date: Mon, 18 Apr 2022 10:06:26 +0800 Subject: [PATCH] add js-apis-document.md Signed-off-by: zhouzhichao --- en/application-dev/reference/apis/js-apis-document.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/en/application-dev/reference/apis/js-apis-document.md b/en/application-dev/reference/apis/js-apis-document.md index 590d2cff07..a312833ba8 100644 --- a/en/application-dev/reference/apis/js-apis-document.md +++ b/en/application-dev/reference/apis/js-apis-document.md @@ -11,7 +11,7 @@ import document from '@ohos.document'; ## Guidelines -Using this function module will throw an error code. +Calling the following interface throws an exception. It is not recommended to use the following interface in OpenHarmony. ## document.choose @@ -23,13 +23,13 @@ Selects a file using the file manager and returns the file URI asynchronously us - **Parameters** -| Name | Type | Mandatory| Description | + | Name | Type | Mandatory| Description | | ------ | ------ | ---- | ---------------------------- | | type | string[] | No | Type of the file selected. | - Return value - | Type | Description | + | Type | Description | | --------------------- | -------------- | | Promise<string> | URI of the file(Note: the current returned error code) | @@ -92,7 +92,7 @@ Asynchronously opens the file corresponding to the URI and returns the result us - **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. Currently | @@ -119,7 +119,7 @@ Asynchronously opens the file corresponding to the URI and returns the result us - **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. Currently | -- GitLab