From 8aa443aaeb49d389b72c0eb4640d347384655904 Mon Sep 17 00:00:00 2001 From: Gloria Date: Fri, 21 Jul 2023 11:36:45 +0800 Subject: [PATCH] fixed be5e361 from https://gitee.com/wusongqing/docs/pulls/21208 Update docs against 20317 Signed-off-by: wusongqing --- .../reference/apis/js-apis-buffer.md | 54 +++++++++---------- .../reference/apis/js-apis-url.md | 4 +- 2 files changed, 29 insertions(+), 29 deletions(-) diff --git a/en/application-dev/reference/apis/js-apis-buffer.md b/en/application-dev/reference/apis/js-apis-buffer.md index 737c9f1dbf..02c8d0edd4 100644 --- a/en/application-dev/reference/apis/js-apis-buffer.md +++ b/en/application-dev/reference/apis/js-apis-buffer.md @@ -218,7 +218,7 @@ For details about the error codes, see [Utils Error Codes](../errorcodes/errorco | ID| Error Message| | -------- | -------- | -| 10200001 | The value of "totalLength" is out of range. | +| 10200001 | The value of "length" is out of range. It must be >= 0 and <= uint32 max. Received value is: [length] | **Example** @@ -1387,7 +1387,7 @@ For details about the error codes, see [Utils Error Codes](../errorcodes/errorco | ID| Error Message| | -------- | -------- | -| 10200001 | The value of "[offset/byteLength]" is out of range. | +| 10200001 | The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] | **Example** @@ -1431,7 +1431,7 @@ For details about the error codes, see [Utils Error Codes](../errorcodes/errorco | ID| Error Message| | -------- | -------- | -| 10200001 | The value of "[offset/byteLength]" is out of range. | +| 10200001 | The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] | **Example** @@ -1681,7 +1681,7 @@ For details about the error codes, see [Utils Error Codes](../errorcodes/errorco | ID| Error Message| | -------- | -------- | -| 10200001 | The value of "[offset/byteLength]" is out of range. | +| 10200001 | The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] | **Example** @@ -1723,7 +1723,7 @@ For details about the error codes, see [Utils Error Codes](../errorcodes/errorco | ID| Error Message| | -------- | -------- | -| 10200001 | The value of "[offset/byteLength]" is out of range. | +| 10200001 | The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] | **Example** @@ -2037,7 +2037,7 @@ For details about the error codes, see [Utils Error Codes](../errorcodes/errorco | ID| Error Message| | -------- | -------- | -| 10200001 | The value of "[value/offset]" is out of range. | +| 10200001 | The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] | **Example** @@ -2076,7 +2076,7 @@ For details about the error codes, see [Utils Error Codes](../errorcodes/errorco | ID| Error Message| | -------- | -------- | -| 10200001 | The value of "[value/offset]" is out of range. | +| 10200001 | The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] | **Example** @@ -2115,7 +2115,7 @@ For details about the error codes, see [Utils Error Codes](../errorcodes/errorco | ID| Error Message| | -------- | -------- | -| 10200001 | The value of "[value/offset]" is out of range. | +| 10200001 | The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] | **Example** @@ -2154,7 +2154,7 @@ For details about the error codes, see [Utils Error Codes](../errorcodes/errorco | ID| Error Message| | -------- | -------- | -| 10200001 | The value of "[value/offset]" is out of range. | +| 10200001 | The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] | **Example** @@ -2193,7 +2193,7 @@ For details about the error codes, see [Utils Error Codes](../errorcodes/errorco | ID| Error Message| | -------- | -------- | -| 10200001 | The value of "[value/offset]" is out of range. | +| 10200001 | The value of "offset" is out of range. It must be >= 0 and <= buf.length - 8. Received value is: [offset] | **Example** @@ -2232,7 +2232,7 @@ For details about the error codes, see [Utils Error Codes](../errorcodes/errorco | ID| Error Message| | -------- | -------- | -| 10200001 | The value of "[value/offset]" is out of range. | +| 10200001 | The value of "offset" is out of range. It must be >= 0 and <= buf.length - 8. Received value is: [offset] | **Example** @@ -2271,7 +2271,7 @@ For details about the error codes, see [Utils Error Codes](../errorcodes/errorco | ID| Error Message| | -------- | -------- | -| 10200001 | The value of "[value/offset]" is out of range. | +| 10200001 | The value of "offset" is out of range. It must be >= 0 and <= buf.length - 4. Received value is: [offset] | **Example** @@ -2311,7 +2311,7 @@ For details about the error codes, see [Utils Error Codes](../errorcodes/errorco | ID| Error Message| | -------- | -------- | -| 10200001 | The value of "[value/offset]" is out of range. | +| 10200001 | The value of "offset" is out of range. It must be >= 0 and <= buf.length - 4. Received value is: [offset] | **Example** @@ -2350,7 +2350,7 @@ For details about the error codes, see [Utils Error Codes](../errorcodes/errorco | ID| Error Message| | -------- | -------- | -| 10200001 | The value of "[value/offset]" is out of range. | +| 10200001 | The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] | **Example** @@ -2391,7 +2391,7 @@ For details about the error codes, see [Utils Error Codes](../errorcodes/errorco | ID| Error Message| | -------- | -------- | -| 10200001 | The value of "[value/offset]" is out of range. | +| 10200001 | The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] | **Example** @@ -2431,7 +2431,7 @@ For details about the error codes, see [Utils Error Codes](../errorcodes/errorco | ID| Error Message| | -------- | -------- | -| 10200001 | The value of "[value/offset]" is out of range. | +| 10200001 | The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] | **Example** @@ -2470,7 +2470,7 @@ For details about the error codes, see [Utils Error Codes](../errorcodes/errorco | ID| Error Message| | -------- | -------- | -| 10200001 | The value of "[value/offset]" is out of range. | +| 10200001 | The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] | **Example** @@ -2510,7 +2510,7 @@ For details about the error codes, see [Utils Error Codes](../errorcodes/errorco | ID| Error Message| | -------- | -------- | -| 10200001 | The value of "[value/offset]" is out of range. | +| 10200001 | The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] | **Example** @@ -2550,7 +2550,7 @@ For details about the error codes, see [Utils Error Codes](../errorcodes/errorco | ID| Error Message| | -------- | -------- | -| 10200001 | The value of "[value/offset/byteLength]" is out of range. | +| 10200001 | The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] | **Example** @@ -2591,7 +2591,7 @@ For details about the error codes, see [Utils Error Codes](../errorcodes/errorco | ID| Error Message| | -------- | -------- | -| 10200001 | The value of "[value/offset/byteLength]" is out of range. | +| 10200001 | The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] | **Example** @@ -2630,7 +2630,7 @@ For details about the error codes, see [Utils Error Codes](../errorcodes/errorco | ID| Error Message| | -------- | -------- | -| 10200001 | The value of "[value/offset]" is out of range. | +| 10200001 | The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] | **Example** @@ -2672,7 +2672,7 @@ For details about the error codes, see [Utils Error Codes](../errorcodes/errorco | ID| Error Message| | -------- | -------- | -| 10200001 | The value of "[value/offset]" is out of range. | +| 10200001 | The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] | **Example** @@ -2712,7 +2712,7 @@ For details about the error codes, see [Utils Error Codes](../errorcodes/errorco | ID| Error Message| | -------- | -------- | -| 10200001 | The value of "[value/offset]" is out of range. | +| 10200001 | The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] | **Example** @@ -2752,7 +2752,7 @@ For details about the error codes, see [Utils Error Codes](../errorcodes/errorco | ID| Error Message| | -------- | -------- | -| 10200001 | The value of "[value/offset]" is out of range. | +| 10200001 | The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] | **Example** @@ -2791,7 +2791,7 @@ For details about the error codes, see [Utils Error Codes](../errorcodes/errorco | ID| Error Message| | -------- | -------- | -| 10200001 | The value of "[value/offset]" is out of range. | +| 10200001 | The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] | **Example** @@ -2831,7 +2831,7 @@ For details about the error codes, see [Utils Error Codes](../errorcodes/errorco | ID| Error Message| | -------- | -------- | -| 10200001 | The value of "[value/offset/byteLength]" is out of range. | +| 10200001 | The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] | **Example** @@ -2871,7 +2871,7 @@ For details about the error codes, see [Utils Error Codes](../errorcodes/errorco | ID| Error Message| | -------- | -------- | -| 10200001 | The value of "[value/offset/byteLength]" is out of range. | +| 10200001 | The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] | **Example** diff --git a/en/application-dev/reference/apis/js-apis-url.md b/en/application-dev/reference/apis/js-apis-url.md index 407929f734..3cc96c9192 100755 --- a/en/application-dev/reference/apis/js-apis-url.md +++ b/en/application-dev/reference/apis/js-apis-url.md @@ -13,7 +13,7 @@ import Url from '@ohos.url' ### constructor9+ -constructor(init?: string[][] | Record<string, string> | string | URLSearchParams) +constructor(init?: string[][] | Record<string, string> | string | URLParams) A constructor used to create a **URLParams** instance. @@ -23,7 +23,7 @@ A constructor used to create a **URLParams** instance. | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | -| init | string[][] \| Record<string, string> \| string \| URLSearchParams | No| Input parameter objects, which include the following:
- **string[][]**: two-dimensional string array
- **Record<string, string>**: list of objects
- **string**: string
- **URLSearchParams**: object
The default value is **null**.| +| init | string[][] \| Record<string, string> \| string \| URLParams | No| Input parameter objects, which include the following:
- **string[][]**: two-dimensional string array
- **Record<string, string>**: list of objects
- **string**: string
- **URLParams**: object
The default value is **null**.| **Example** -- GitLab