未验证 提交 ebac1d73 编写于 作者: O openharmony_ci 提交者: Gitee

!9949 【轻量级 PR】:update zh-cn/application-dev/reference/apis/js-apis-settings.md.

Merge pull request !9949 from 葛亚芳/N/A
...@@ -422,7 +422,7 @@ enableAirplaneMode(enable: boolean): Promise\<void> ...@@ -422,7 +422,7 @@ enableAirplaneMode(enable: boolean): Promise\<void>
```js ```js
let isEnabled = true; let isEnabled = true;
settingsenableAirplaneMode(isEnabled).then((err) => { settings.enableAirplaneMode(isEnabled).then((err) => {
if (err) { if (err) {
console.log('Failed to enable AirplaneMode.'); console.log('Failed to enable AirplaneMode.');
return; return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册