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 eec0945d3353ed41b112cf4b98d344383a45083d..644046b46b65ea0c3ff9d8d9733e739d6a6153af 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-sensor.md +++ b/zh-cn/application-dev/reference/apis/js-apis-sensor.md @@ -2432,7 +2432,7 @@ sensor.getSensorList((error, data) => { sensor.getSensorList().then((data) => { console.info("getSensorList promise in-----------" + data.length); for (var i = 0; i < data.length; i++) { - console.info("SensorJsTest_109 " + JSON.stringify(data[i])); + console.info("getSensorList " + JSON.stringify(data[i])); } }, (error)=>{ console.error('getSensorList failed'); @@ -2459,7 +2459,7 @@ getSingleSensor(type:SensorType, callback: AsyncCallback<sensor>): void ``` sensor.getSingleSensor(sensor.SensorType.SENSOR_TYPE_ID_ACCELEROMETER, (error, data) => { if (error) { - console.info('SensorJsTest_111 failed'); + console.error('getSingleSensor failed'); expect(false).assertTrue(); } else { console.info("getSingleSensor " + JSON.stringify(data));