提交 837419a4 编写于 作者: Z zha wei

description:说明文档格式修改

Signed-off-by: Nzha wei <zhawei@kaihong.com>
上级 3e67c30b
......@@ -109,7 +109,8 @@ import secureElement from '@ohos.secureElement';
// get SEService
try {
this.nfcSEService = secureElement.newSEService("serviceState", (state) => {
this.nfcSEService = secureElement.newSEService("serviceState", (state) =>
{
if (state == secureElement.ServiceState.DISCONNECTED) {
this.result = "Service state is Disconnected";
} else {
......@@ -160,7 +161,7 @@ import secureElement from '@ohos.secureElement';
try {
let ret: boolean;
// 有效this.nfcSEService,获取方式参考newService
// 有效this.nfcSEService,获取方式参考newSEService
ret = this.nfcSEService.isConnected();
if (ret) {
this.result = '获取连接状态:connected';
......@@ -202,7 +203,7 @@ import secureElement from '@ohos.secureElement';
@State nfcSEService: secureElement.SEService = null;
try {
// 有效this.nfcSEService,获取方式参考newService
// 有效this.nfcSEService,获取方式参考newSEService
this.nfcSEService.shutdown();
this.result = "shutdown成功";
} catch (e) {
......@@ -241,7 +242,7 @@ import secureElement from '@ohos.secureElement';
this.result = "版本名称:"
try {
// 有效this.nfcSEService,获取方式参考newService
// 有效this.nfcSEService,获取方式参考newSEService
this.result += this.nfcSEService.getVersion();
} catch (e) {
this.result += "getVersion异常:" + e.message;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册