Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
715935e9
D
Docs
项目概览
OpenHarmony
/
Docs
1 年多 前同步成功
通知
159
Star
292
Fork
28
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
Docs
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
715935e9
编写于
7月 03, 2023
作者:
O
openharmony_ci
提交者:
Gitee
7月 03, 2023
浏览文件
操作
浏览文件
下载
差异文件
!20317 修改buffer、url模块md文档与d.ts部分接口错误码描述不相符问题
Merge pull request !20317 from 赵杜炜/master
上级
12e72582
e3d684e0
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
29 addition
and
29 deletion
+29
-29
zh-cn/application-dev/reference/apis/js-apis-buffer.md
zh-cn/application-dev/reference/apis/js-apis-buffer.md
+27
-27
zh-cn/application-dev/reference/apis/js-apis-url.md
zh-cn/application-dev/reference/apis/js-apis-url.md
+2
-2
未找到文件。
zh-cn/application-dev/reference/apis/js-apis-buffer.md
浏览文件 @
715935e9
...
...
@@ -218,7 +218,7 @@ concat(list: Buffer[] | Uint8Array[], totalLength?: number): Buffer
| 错误码ID | 错误信息 |
| -------- | -------- |
| 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]
|
**示例:**
...
...
@@ -1387,7 +1387,7 @@ readIntBE(offset: number, byteLength: number): number
| 错误码ID | 错误信息 |
| -------- | -------- |
| 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]
|
**示例:**
...
...
@@ -1431,7 +1431,7 @@ readIntLE(offset: number, byteLength: number): number
| 错误码ID | 错误信息 |
| -------- | -------- |
| 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]
|
**示例:**
...
...
@@ -1681,7 +1681,7 @@ readUIntBE(offset: number, byteLength: number): number
| 错误码ID | 错误信息 |
| -------- | -------- |
| 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]
|
**示例:**
...
...
@@ -1723,7 +1723,7 @@ readUIntLE(offset: number, byteLength: number): number
| 错误码ID | 错误信息 |
| -------- | -------- |
| 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]
|
**示例:**
...
...
@@ -2037,7 +2037,7 @@ writeBigInt64BE(value: bigint, offset?: number): number
| 错误码ID | 错误信息 |
| -------- | -------- |
| 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]
|
**示例:**
...
...
@@ -2076,7 +2076,7 @@ writeBigInt64LE(value: bigint, offset?: number): number
| 错误码ID | 错误信息 |
| -------- | -------- |
| 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]
|
**示例:**
...
...
@@ -2115,7 +2115,7 @@ writeBigUInt64BE(value: bigint, offset?: number): number
| 错误码ID | 错误信息 |
| -------- | -------- |
| 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]
|
**示例:**
...
...
@@ -2154,7 +2154,7 @@ writeBigUInt64LE(value: bigint, offset?: number): number
| 错误码ID | 错误信息 |
| -------- | -------- |
| 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]
|
**示例:**
...
...
@@ -2193,7 +2193,7 @@ writeDoubleBE(value: number, offset?: number): number
| 错误码ID | 错误信息 |
| -------- | -------- |
| 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]
|
**示例:**
...
...
@@ -2232,7 +2232,7 @@ writeDoubleLE(value: number, offset?: number): number
| 错误码ID | 错误信息 |
| -------- | -------- |
| 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]
|
**示例:**
...
...
@@ -2271,7 +2271,7 @@ writeFloatBE(value: number, offset?: number): number
| 错误码ID | 错误信息 |
| -------- | -------- |
| 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]
|
**示例:**
...
...
@@ -2311,7 +2311,7 @@ writeFloatLE(value: number, offset?: number): number
| 错误码ID | 错误信息 |
| -------- | -------- |
| 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]
|
**示例:**
...
...
@@ -2350,7 +2350,7 @@ writeInt8(value: number, offset?: number): number
| 错误码ID | 错误信息 |
| -------- | -------- |
| 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]
|
**示例:**
...
...
@@ -2391,7 +2391,7 @@ writeInt16BE(value: number, offset?: number): number
| 错误码ID | 错误信息 |
| -------- | -------- |
| 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]
|
**示例:**
...
...
@@ -2431,7 +2431,7 @@ writeInt16LE(value: number, offset?: number): number
| 错误码ID | 错误信息 |
| -------- | -------- |
| 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]
|
**示例:**
...
...
@@ -2470,7 +2470,7 @@ writeInt32BE(value: number, offset?: number): number
| 错误码ID | 错误信息 |
| -------- | -------- |
| 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]
|
**示例:**
...
...
@@ -2510,7 +2510,7 @@ writeInt32LE(value: number, offset?: number): number
| 错误码ID | 错误信息 |
| -------- | -------- |
| 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]
|
**示例:**
...
...
@@ -2550,7 +2550,7 @@ writeIntBE(value: number, offset: number, byteLength: number): number
| 错误码ID | 错误信息 |
| -------- | -------- |
| 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]
|
**示例:**
...
...
@@ -2591,7 +2591,7 @@ writeIntLE(value: number, offset: number, byteLength: number): number
| 错误码ID | 错误信息 |
| -------- | -------- |
| 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]
|
**示例:**
...
...
@@ -2630,7 +2630,7 @@ writeUInt8(value: number, offset?: number): number
| 错误码ID | 错误信息 |
| -------- | -------- |
| 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]
|
**示例:**
...
...
@@ -2672,7 +2672,7 @@ writeUInt16BE(value: number, offset?: number): number
| 错误码ID | 错误信息 |
| -------- | -------- |
| 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]
|
**示例:**
...
...
@@ -2712,7 +2712,7 @@ writeUInt16LE(value: number, offset?: number): number
| 错误码ID | 错误信息 |
| -------- | -------- |
| 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]
|
**示例:**
...
...
@@ -2752,7 +2752,7 @@ writeUInt32BE(value: number, offset?: number): number
| 错误码ID | 错误信息 |
| -------- | -------- |
| 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]
|
**示例:**
...
...
@@ -2791,7 +2791,7 @@ writeUInt32LE(value: number, offset?: number): number
| 错误码ID | 错误信息 |
| -------- | -------- |
| 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]
|
**示例:**
...
...
@@ -2831,7 +2831,7 @@ writeUIntBE(value: number, offset: number, byteLength: number): number
| 错误码ID | 错误信息 |
| -------- | -------- |
| 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]
|
**示例:**
...
...
@@ -2871,7 +2871,7 @@ writeUIntLE(value: number, offset: number, byteLength: number): number
| 错误码ID | 错误信息 |
| -------- | -------- |
| 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]
|
**示例:**
...
...
zh-cn/application-dev/reference/apis/js-apis-url.md
浏览文件 @
715935e9
...
...
@@ -13,7 +13,7 @@ import Url from '@ohos.url'
### constructor<sup>9+</sup>
constructor(init?: string
[][]
| Record
<
string, string
>
| string | URL
Search
Params)
constructor(init?: string
[][]
| Record
<
string, string
>
| string | URLParams)
URLParams的构造函数。
...
...
@@ -23,7 +23,7 @@ URLParams的构造函数。
| 参数名 | 类型 | 必填 | 说明 |
| -------- | -------- | -------- | -------- |
| init | string
[][]
\|
Record
<
string, string
>
\|
string
\|
URL
SearchParams | 否 | 入参对象。
<br/>
- string
[][]
:字符串二维数组
<br/>
- Record
<
string, string
>
:对象列表
<br/>
- string:字符串
<br/>
- URLSearch
Params:对象
<br/>
- 默认值:null。 |
| init | string
[][]
\|
Record
<
string, string
>
\|
string
\|
URL
Params | 否 | 入参对象。
<br/>
- string
[][]
:字符串二维数组
<br/>
- Record
<
string, string
>
:对象列表
<br/>
- string:字符串
<br/>
- URL
Params:对象
<br/>
- 默认值:null。 |
**示例:**
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录