From 9a891c97074ac14516653ac11f734f7c172f3ab4 Mon Sep 17 00:00:00 2001 From: zhouzhichao Date: Mon, 18 Apr 2022 16:49:53 +0800 Subject: [PATCH] add js-apis-document.md Signed-off-by: zhouzhichao --- en/application-dev/reference/apis/js-apis-document.md | 7 ++----- zh-cn/application-dev/reference/apis/js-apis-document.md | 8 ++------ 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/en/application-dev/reference/apis/js-apis-document.md b/en/application-dev/reference/apis/js-apis-document.md index a312833ba8..045ee7bb3e 100644 --- a/en/application-dev/reference/apis/js-apis-document.md +++ b/en/application-dev/reference/apis/js-apis-document.md @@ -1,7 +1,8 @@ # document > ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE:**
-> The interface of this module will be discarded later. +- 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 interface of this module will be discarded later.Calling the following interface throws an exception. It is not recommended to use the following interface in OpenHarmony. ## Modules to Import @@ -9,10 +10,6 @@ import document from '@ohos.document'; ``` -## Guidelines - -Calling the following interface throws an exception. It is not recommended to use the following interface in OpenHarmony. - ## document.choose choose(type:string[]): Promise<string> diff --git a/zh-cn/application-dev/reference/apis/js-apis-document.md b/zh-cn/application-dev/reference/apis/js-apis-document.md index b8aa1fc280..469cd51caa 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-document.md +++ b/zh-cn/application-dev/reference/apis/js-apis-document.md @@ -1,18 +1,14 @@ # document > ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** -> 本模块接口后续将废弃。 - +- 本模块首批接口从API version 6开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 +- 本模块接口后续将废弃。不建议在OpenHarmony使用以下接口,调用以下接口将抛出异常。 ## 导入模块 ```js import document from '@ohos.document'; ``` -## 使用说明 - -调用以下接口抛出异常,不建议在OpenHarmony使用以下接口。 - ## document.choose choose(type:string[]): Promise<string> -- GitLab