diff --git a/zh-cn/application-dev/reference/apis/js-apis-cardEmulation.md b/zh-cn/application-dev/reference/apis/js-apis-cardEmulation.md index 8111e53fe8502ffc811a942441b19e465b376d9b..2a88d01e5b99f51ca9f95e12dba45c36b61b7c58 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-cardEmulation.md +++ b/zh-cn/application-dev/reference/apis/js-apis-cardEmulation.md @@ -21,14 +21,15 @@ isSupported(feature: number): boolean **系统能力**:SystemCapability.Communication.NFC -- 返回值: +**返回值:** + | **类型** | **说明** | | -------- | -------- | | boolean | true:支持该类型卡模拟, false:不支持该类型卡模拟。 | ## HceService -管理HCE卡模拟。在调用HceService的接口前,需要先通过getHceService创建实例。 +管理HCE卡模拟。在调用HceService的接口前,需要先通过new cardEmulation.HceService()创建实例。 ### startHCE @@ -91,7 +92,7 @@ sendResponse(responseApdu: number[]): void; **示例:** -``` +```js var hceService = new cardEmulation.HceService(); hceService.startHCE([ "F0010203040506", "A0000000041010"