diff --git a/zh-cn/application-dev/reference/apis/js-apis-window.md b/zh-cn/application-dev/reference/apis/js-apis-window.md index 1003f9d98a844e0bd6e9b872b99c93028dda2bb2..458d1a8eb8e2d5fb8517b47cc2f3f3e001b8c3c4 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-window.md +++ b/zh-cn/application-dev/reference/apis/js-apis-window.md @@ -1373,7 +1373,8 @@ setSystemBarEnable(names: Array<'status' | 'navigation'>, callback: AsyncCallbac **示例:** ```js -var names = ["status", "navigation"]; +// 此处以不显示导航栏、状态栏为例 +var names = []; windowClass.setSystemBarEnable(names, (err, data) => { if (err.code) { console.error('Failed to set the system bar to be visible. Cause:' + JSON.stringify(err)); @@ -1406,7 +1407,8 @@ setSystemBarEnable(names: Array<'status' | 'navigation'>): Promise<void> **示例:** ```js -var names = ["status", "navigation"]; +// 此处以不显示导航栏、状态栏为例 +var names = []; let promise = windowClass.setSystemBarEnable(names); promise.then((data)=> { console.info('Succeeded in setting the system bar to be visible. Data: ' + JSON.stringify(data));