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 23475b92e084d26815eedcd11de4cec322af51c2..fcb1d7492d98807765613e07e061899e29e5e9ab 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-camera.md +++ b/zh-cn/application-dev/reference/apis/js-apis-camera.md @@ -3303,7 +3303,7 @@ isMirrorSupported(callback: AsyncCallback): void **示例:** ```js -captureSession.isMirrorSupported((err, isSupported) => { +photoOutput.isMirrorSupported((err, isSupported) => { if (err) { console.error(`Failed to check mirror is supported ${err.message}`); return; @@ -3329,7 +3329,7 @@ isMirrorSupported(): Promise **示例:** ```js -captureSession.isMirrorSupported().then((isSupported) => { +photoOutput.isMirrorSupported().then((isSupported) => { console.log(`Promise returned with mirror supported: ${isSupported}`); }) ```