提交 ddb422eb 编写于 作者: J jiangminyang

fixed js example.

Signed-off-by: Njiangminyang <jiangminyang@huawei.com>
上级 7926e4f8
......@@ -2840,7 +2840,7 @@ release(callback: AsyncCallback<void\>): 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<void\>
**示例:**
```js
previewOutput.release().then(() => {
cameraOutput.release().then(() => {
console.log('Promise returned to indicate that the PreviewOutput instance is released successfully.');
})
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册