diff --git a/zh-cn/application-dev/reference/apis/js-apis-camera.md b/zh-cn/application-dev/reference/apis/js-apis-camera.md index 3d4764d3a0815b60740233d17f1ea5fcc39e3a79..1d7ecedb9bf69cf520049f33f1a3bfd780c1243b 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-camera.md +++ b/zh-cn/application-dev/reference/apis/js-apis-camera.md @@ -2840,7 +2840,7 @@ release(callback: AsyncCallback): void **示例:** ```js -previewOutput.release((err) => { +cameraOutput.release((err) => { if (err) { console.error(`Failed to release the PreviewOutput instance ${err.message}`); return; @@ -2866,7 +2866,7 @@ release(): Promise **示例:** ```js -previewOutput.release().then(() => { +cameraOutput.release().then(() => { console.log('Promise returned to indicate that the PreviewOutput instance is released successfully.'); }) ```