From 4531198c5fc0ad513ce2d221fc148b800c58554d Mon Sep 17 00:00:00 2001 From: li-yaoyao777 Date: Wed, 29 Jun 2022 17:40:40 +0800 Subject: [PATCH] =?UTF-8?q?fixed=2079d953c=20from=20https://gitee.com/li-y?= =?UTF-8?q?aoyao777/docs/pulls/6117=20=E4=BF=AE=E6=94=B9js-apis-sensor.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: li-yaoyao777 --- zh-cn/application-dev/reference/apis/js-apis-sensor.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-sensor.md b/zh-cn/application-dev/reference/apis/js-apis-sensor.md index ad3a72baee..5ee7d10f6d 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-sensor.md +++ b/zh-cn/application-dev/reference/apis/js-apis-sensor.md @@ -885,7 +885,7 @@ once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback<ProximityR **示例:** ```js - sensor.once(sensor.SensorType.SENSOR_TYPE_ID_PROXIMITY, function(error, data) { + sensor.once(sensor.SensorType.SENSOR_TYPE_ID_PROXIMITY, function(data) { if (error) { console.error("Subscription failed. Error code: " + error.code + "; message: " + error.message); return; @@ -1898,7 +1898,6 @@ getAngleModify(currentRotationMatrix: Array<number>, preRotationMatrix: Ar err.message); return; } - console.info("SensorJsAPI--->Successed to get getAngleModifiy interface get data: " + data.x); for (var i=0; i < data.length; i++) { console.info("data[" + i + "]: " + data[i]); } @@ -1966,7 +1965,6 @@ createRotationMatrix(rotationVector: Array<number>, callback: AsyncCallbac err.message); return; } - console.info("SensorJsAPI--->Successed to get createRotationMatrix interface get data: " + data.x); for (var i=0; i < data.length; i++) { console.info("data[" + i + "]: " + data[i]); } @@ -2033,7 +2031,6 @@ createQuaternion(rotationVector: Array<number>, callback: AsyncCallback< err.message); return; } - console.info("SensorJsAPI--->Successed to get createQuaternion interface get data: " + data.x); for (var i=0; i < data.length; i++) { console.info("data[" + i + "]: " + data[i]); } @@ -2168,7 +2165,6 @@ createRotationMatrix(gravity: Array<number>, geomagnetic: Array<number& err.message); return; } - console.info("SensorJsAPI--->Successed to get createRotationMatrix interface get data: " + data.x); for (var i=0; i < data.length; i++) { console.info("data[" + i + "]: " + data[i]) } -- GitLab