Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
fa38078b
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看板
提交
fa38078b
编写于
8月 29, 2023
作者:
W
wujie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
docs:Consistency between docs and dts documents
Signed-off-by:
N
wujie
<
1255071198@qq.com
>
上级
169ee0e7
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
16 addition
and
16 deletion
+16
-16
zh-cn/application-dev/reference/apis/js-apis-cardEmulation.md
...n/application-dev/reference/apis/js-apis-cardEmulation.md
+4
-4
zh-cn/application-dev/reference/apis/js-apis-secureElement.md
...n/application-dev/reference/apis/js-apis-secureElement.md
+12
-12
未找到文件。
zh-cn/application-dev/reference/apis/js-apis-cardEmulation.md
浏览文件 @
fa38078b
...
...
@@ -223,7 +223,7 @@ sendResponse(responseApdu: number[]): void;
### transmit<sup>9+</sup>
transmit(response: number[]): Promise
<void>
;
transmit(response: number[]): Promise
\
<
void>;
发送APDU数据到对端读卡设备。暂不支持使用,仅做接口声明。
...
...
@@ -241,7 +241,7 @@ transmit(response: number[]): Promise<void>;
|
**类型**
|
**说明**
|
| ------- | -------------------------------------- |
| Promise
<void>
| 表示异步回调完成。 |
| Promise
\
<
void> | 表示异步回调完成。 |
**错误码:**
...
...
@@ -253,7 +253,7 @@ transmit(response: number[]): Promise<void>;
### transmit<sup>9+</sup>
transmit(response: number[], callback: AsyncCallback
<void>
): void;
transmit(response: number[], callback: AsyncCallback
\
<
void>): void;
发送APDU数据到对端读卡设备。暂不支持使用,仅做接口声明。
...
...
@@ -266,7 +266,7 @@ transmit(response: number[], callback: AsyncCallback<void>): void;
| 参数名 | 类型 | 必填 | 说明 |
| ------- | -------- | ---- | ----------------------- |
| responseApdu | number[] | 是 | 发送到对端读卡设备的符合APDU协议的数据,每个number十六进制表示,范围是0x00~0xFF。 |
| callback | AsyncCallback
<void>
| 是 | 回调函数void |
| callback | AsyncCallback
\
<
void> | 是 | 回调函数void |
**错误码:**
...
...
zh-cn/application-dev/reference/apis/js-apis-secureElement.md
浏览文件 @
fa38078b
...
...
@@ -570,7 +570,7 @@ openBasicChannel(aid: number[]): Promise\<Channel>
| 错误码ID | 错误信息 |
| -------- | -------------------------------- |
| 3300101 | IllegalStateError,
service state exception
. |
| 3300101 | IllegalStateError,
an attempt is made to use an SE session that has been closed
. |
| 3300102 | NoSuchElementError, the AID on the SE is not available or cannot be selected. |
| 3300103 | SecurityError, the calling application cannot be granted access to this AID or the default applet on this session. |
| 3300104 | IOError, there is a communication problem to the reader or the SE. |
...
...
@@ -619,7 +619,7 @@ try {
| 错误码ID | 错误信息 |
| -------- | -------------------------------- |
| 3300101 | IllegalStateError,
service state exception
. |
| 3300101 | IllegalStateError,
an attempt is made to use an SE session that has been closed
. |
| 3300102 | NoSuchElementError, the AID on the SE is not available or cannot be selected. |
| 3300103 | SecurityError, the calling application cannot be granted access to this AID or the default applet on this session. |
| 3300104 | IOError, there is a communication problem to the reader or the SE. |
...
...
@@ -675,7 +675,7 @@ openBasicChannel(aid: number[], p2: number): Promise\<Channel>
| 错误码ID | 错误信息 |
| -------- | -------------------------------- |
| 3300101 | IllegalStateError,
service state exception
. |
| 3300101 | IllegalStateError,
an attempt is made to use an SE session that has been closed
. |
| 3300102 | NoSuchElementError, the AID on the SE is not available or cannot be selected. |
| 3300103 | SecurityError, the calling application cannot be granted access to this AID or the default applet on this session. |
| 3300104 | IOError, there is a communication problem to the reader or the SE. |
...
...
@@ -726,7 +726,7 @@ openBasicChannel(aid: number[], p2:number, callback: AsyncCallback\<Channel>): v
| 错误码ID | 错误信息 |
| -------- | -------------------------------- |
| 3300101 | IllegalStateError,
service state exception
. |
| 3300101 | IllegalStateError,
an attempt is made to use an SE session that has been closed
. |
| 3300102 | NoSuchElementError, the AID on the SE is not available or cannot be selected. |
| 3300103 | SecurityError, the calling application cannot be granted access to this AID or the default applet on this session. |
| 3300104 | IOError, there is a communication problem to the reader or the SE. |
...
...
@@ -782,7 +782,7 @@ openLogicalChannel(aid: number[]): Promise\<Channel>
| 错误码ID | 错误信息 |
| -------- | -------------------------------- |
| 3300101 | IllegalStateError,
service state exception
. |
| 3300101 | IllegalStateError,
an attempt is made to use an SE session that has been closed
. |
| 3300102 | NoSuchElementError, the AID on the SE is not available or cannot be selected. |
| 3300103 | SecurityError, the calling application cannot be granted access to this AID or the default applet on this session. |
| 3300104 | IOError, there is a communication problem to the reader or the SE. |
...
...
@@ -831,7 +831,7 @@ try {
| 错误码ID | 错误信息 |
| -------- | -------------------------------- |
| 3300101 | IllegalStateError,
service state exception
. |
| 3300101 | IllegalStateError,
an attempt is made to use an SE session that has been closed
. |
| 3300102 | NoSuchElementError, the AID on the SE is not available or cannot be selected. |
| 3300103 | SecurityError, the calling application cannot be granted access to this AID or the default applet on this session. |
| 3300104 | IOError, there is a communication problem to the reader or the SE. |
...
...
@@ -887,7 +887,7 @@ P2通常为0x00。设备应允许P2的任何值,并且应允许以下值: 0x
| 错误码ID | 错误信息 |
| -------- | -------------------------------- |
| 3300101 | IllegalStateError,
service state exception
. |
| 3300101 | IllegalStateError,
an attempt is made to use an SE session that has been closed
. |
| 3300102 | NoSuchElementError, the AID on the SE is not available or cannot be selected. |
| 3300103 | SecurityError, the calling application cannot be granted access to this AID or the default applet on this session. |
| 3300104 | IOError, there is a communication problem to the reader or the SE. |
...
...
@@ -947,7 +947,7 @@ P2通常为0x00。设备应允许P2的任何值,并且应允许以下值: 0x
| 错误码ID | 错误信息 |
| -------- | -------------------------------- |
| 3300101 | IllegalStateError,
service state exception
. |
| 3300101 | IllegalStateError,
an attempt is made to use an SE session that has been closed
. |
| 3300102 | NoSuchElementError, the AID on the SE is not available or cannot be selected. |
| 3300103 | SecurityError, the calling application cannot be granted access to this AID or the default applet on this session. |
| 3300104 | IOError, there is a communication problem to the reader or the SE. |
...
...
@@ -1176,8 +1176,8 @@ transmit(command: number[]): Promise<number[]>
| 错误码ID | 错误信息 |
| -------- | -------------------------------- |
| 3300101 | IllegalStateError,
service state exception
. |
| 3300103 | SecurityError, the c
alling application cannot be granted access to this AID or the default applet on this session.
|
| 3300101 | IllegalStateError,
an attempt is made to use an SE session or channel that has been closed
. |
| 3300103 | SecurityError, the c
ommand is filtered by the security policy.
|
| 3300104 | IOError, there is a communication problem to the reader or the SE. |
**示例:**
...
...
@@ -1228,8 +1228,8 @@ transmit(command: number[], callback: AsyncCallback<number[]>): void
| 错误码ID | 错误信息 |
| -------- | -------------------------------- |
| 3300101 | IllegalStateError,
service state exception
. |
| 3300103 | SecurityError, the c
alling application cannot be granted access to this AID or the default applet on this session.
|
| 3300101 | IllegalStateError,
an attempt is made to use an SE session or channel that has been closed
. |
| 3300103 | SecurityError, the c
ommand is filtered by the security policy.
|
| 3300104 | IOError, there is a communication problem to the reader or the SE. |
**示例:**
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录