From 2d7880ad96fe245503e5040c6bdd23a0652b08b3 Mon Sep 17 00:00:00 2001 From: tangjia Date: Mon, 13 Mar 2023 10:56:31 +0800 Subject: [PATCH] fix the system.bluetooth Signed-off-by: tangjia --- .../reference/apis/js-apis-system-bluetooth.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-system-bluetooth.md b/zh-cn/application-dev/reference/apis/js-apis-system-bluetooth.md index 7e4043be8c..ce66b30369 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-system-bluetooth.md +++ b/zh-cn/application-dev/reference/apis/js-apis-system-bluetooth.md @@ -42,7 +42,7 @@ import bluetooth from '@system.bluetooth'; console.log('call bluetooth.startBLEScan success.'); }, fail(code, data) { - console.log('call bluetooth.startBLEScan failed, code: ${code}, data: ${data}.'); + console.log('call bluetooth.startBLEScan failed, code:' + code + ', data:' + data); }, complete() { console.log('call bluetooth.startBLEScan complete.'); @@ -76,7 +76,7 @@ import bluetooth from '@system.bluetooth'; console.log('call bluetooth.stopBLEScan success.'); }, fail(data, code) { - console.log('call bluethooth.stopBLEScan fail, code: ${code}, data: ${data}.'); + console.log('call bluethooth.stopBLEScan fail, code:' + code + ', data:' + data); }, complete() { console.log('call bluethooth.stopBLEScan complete.'); @@ -125,7 +125,7 @@ import bluetooth from '@system.bluetooth'; console.log('call bluetooth.subscribeBLEFound success, data: ${data}.'); }, fail(data, code) { - console.log('call bluetooth.startBLEScan failed, data: ${data}, code: ${code}.'); + console.log('call bluetooth.startBLEScan failed, code:' + code + ', data:' + data); } }); ``` -- GitLab