diff --git a/en/application-dev/reference/apis/js-apis-uri.md b/en/application-dev/reference/apis/js-apis-uri.md
index 00bf51656958f8ca58b926cb54ad9fd1d82a8e53..b3fb6f7a3ea58550cfa93a514591715952c52ad6 100644
--- a/en/application-dev/reference/apis/js-apis-uri.md
+++ b/en/application-dev/reference/apis/js-apis-uri.md
@@ -35,7 +35,7 @@ Naming format:
A standard URI consists of the following parts:
[scheme:]scheme-specific-part[#fragment]
-- Scheme: scheme component, which is mandatory. Example values: **http**, **https**, **ftp**, **datashare**, and **dataability**.
+- scheme: scheme component. Set this parameter as required. Example values: **http**, **https**, **ftp**, **datashare**, and **dataability**.
- scheme-specific-part: specific part of the URI decoding scheme. The value consists of [//][authority][path][?query]. Set this parameter as required.
- authority: decoding authority component of the URI. The value consists of [userinfo@]host[:port]. Set this parameter as required.
- userinfo: user information. Set this parameter as required.
@@ -226,7 +226,9 @@ Checks whether this URI is an absolute URI (whether the scheme component is defi
```js
const uriInstance = new uri.URI('https://username:password@www.qwer.com:8080?query=pppppp');
-uriInstance.checkIsAbsolute();
+console.log(uriInstance.checkIsAbsolute()); // true
+const uriInstance1 = new uri.URI('xxx.com/suppliers.htm');
+console.log(uriInstance1.checkIsAbsolute()); // false
```
@@ -248,6 +250,7 @@ Normalizes the path of this URI.
```js
const uriInstance = new uri.URI('https://username:password@www.qwer.com:8080/path/path1/../path2/./path3?query=pppppp');
+console.log(uriInstance.path); // /path/path1/../path2/./path3
let uriInstance1 = uriInstance.normalize();
-uriInstance1.path;
+console.log(uriInstance1.path); // /path/path2/path3
```
diff --git a/en/application-dev/reference/apis/js-apis-url.md b/en/application-dev/reference/apis/js-apis-url.md
index 8a972e121d32b041e1ff7f8319c4e26261afb2f5..d4d453a59685a23f228ca2d4bc7e56ac0608a8e8 100755
--- a/en/application-dev/reference/apis/js-apis-url.md
+++ b/en/application-dev/reference/apis/js-apis-url.md
@@ -87,7 +87,7 @@ paramsObject.delete('fod');
getAll(name: string): string[]
-Obtains all the key-value pairs based on the specified name.
+Obtains all the values based on the specified key.
**System capability**: SystemCapability.Utils.Lang
@@ -95,13 +95,13 @@ Obtains all the key-value pairs based on the specified name.
| Name| Type| Mandatory| Description|
| -------- | -------- | -------- | -------- |
-| name | string | Yes| Key specified to obtain all key-value pairs.|
+| name | string | Yes| Target key.|
**Return value**
| Type| Description|
| -------- | -------- |
-| string[] | Key-value pairs obtained.|
+| string[] | All the values obtained.|
**Example**
@@ -432,7 +432,7 @@ A no-argument constructor used to create a URL. It returns a **URL** object afte
**System capability**: SystemCapability.Utils.Lang
### parseURL9+
-
+
static parseURL(url : string, base?: string | URL): URL
Parses a URL.
@@ -514,7 +514,7 @@ A constructor used to create a **URLSearchParams** instance.
> **NOTE**
>
-> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [URLParams9+](#constructor9) instead.
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [URLParams.constructor9+](#constructor9) instead.
**System capability**: SystemCapability.Utils.Lang
@@ -542,7 +542,7 @@ Appends a key-value pair into the query string.
> **NOTE**
>
-> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [URLParams9+.append9+](#append9) instead.
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [URLParams.append9+](#append9) instead.
**System capability**: SystemCapability.Utils.Lang
@@ -569,7 +569,7 @@ Deletes key-value pairs of the specified key.
> **NOTE**
>
-> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [URLParams9+.delete9+](#delete9) instead.
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [URLParams.delete9+](#delete9) instead.
**System capability**: SystemCapability.Utils.Lang
@@ -595,7 +595,7 @@ Obtains all the key-value pairs based on the specified key.
> **NOTE**
>
-> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [URLParams9+.getAll9+](#getall9) instead.
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [URLParams.getAll9+](#getall9) instead.
**System capability**: SystemCapability.Utils.Lang
@@ -603,7 +603,7 @@ Obtains all the key-value pairs based on the specified key.
| Name| Type| Mandatory| Description|
| -------- | -------- | -------- | -------- |
-| name | string | Yes| Key specified to obtain all key-value pairs.|
+| name | string | Yes| Target key.|
**Return value**
@@ -628,7 +628,7 @@ Obtains an ES6 iterator. Each item of the iterator is a JavaScript array, and th
> **NOTE**
>
-> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [URLParams9+.entries9+](#entries9) instead.
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [URLParams.entries9+](#entries9) instead.
**System capability**: SystemCapability.Utils.Lang
@@ -656,7 +656,7 @@ Traverses the key-value pairs in the **URLSearchParams** instance by using a cal
> **NOTE**
>
-> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [URLParams9+.forEach9+](#foreach9) instead.
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [URLParams.forEach9+](#foreach9) instead.
**System capability**: SystemCapability.Utils.Lang
@@ -693,7 +693,7 @@ Obtains the value of the first key-value pair based on the specified key.
> **NOTE**
>
-> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [URLParams9+.get9+](#get9) instead.
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [URLParams.get9+](#get9) instead.
**System capability**: SystemCapability.Utils.Lang
@@ -727,7 +727,7 @@ Checks whether a key has a value.
> **NOTE**
>
-> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [URLParams9+.has9+](#has9) instead.
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [URLParams.has9+](#has9) instead.
**System capability**: SystemCapability.Utils.Lang
@@ -760,7 +760,7 @@ Sets the value for a key. If key-value pairs matching the specified key exist, t
> **NOTE**
>
-> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [URLParams9+.set9+](#set9) instead.
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [URLParams.set9+](#set9) instead.
**System capability**: SystemCapability.Utils.Lang
@@ -788,7 +788,7 @@ Sorts all key-value pairs contained in this object based on the Unicode code poi
> **NOTE**
>
-> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [URLParams9+.sort9+](#sort9) instead.
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [URLParams.sort9+](#sort9) instead.
**System capability**: SystemCapability.Utils.Lang
@@ -809,7 +809,7 @@ Obtains an ES6 iterator that contains the keys of all the key-value pairs.
> **NOTE**
>
-> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [URLParams9+.keys9+](#keys9) instead.
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [URLParams.keys9+](#keys9) instead.
**System capability**: SystemCapability.Utils.Lang
@@ -837,7 +837,7 @@ Obtains an ES6 iterator that contains the values of all the key-value pairs.
> **NOTE**
>
-> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [URLParams9+.values9+](#values9) instead.
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [URLParams.values9+](#values9) instead.
**System capability**: SystemCapability.Utils.Lang
@@ -865,7 +865,7 @@ Obtains an ES6 iterator. Each item of the iterator is a JavaScript array, and th
> **NOTE**
>
-> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [Symbol.iterator]9+](#symboliterator9) instead.
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [URLParams.[Symbol.iterator]9+](#symboliterator9) instead.
**System capability**: SystemCapability.Utils.Lang
@@ -892,7 +892,7 @@ Obtains search parameters that are serialized as a string and, if necessary, per
> **NOTE**
>
-> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [tostring9+](#tostring9) instead.
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [URLParams.tostring9+](#tostring9) instead.
**System capability**: SystemCapability.Utils.Lang