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

!4304 fix interface in js-apis-settings.md

Merge pull request !4304 from 吕晓强/fix_settings_doc
......@@ -62,7 +62,7 @@ Obtains the value of a data item.
- Example
```typescript
import featureAbility from '@ohos.featureAbility';
import featureAbility from '@ohos.ability.featureAbility';
// Obtain the value of 'settings.screen.brightness' (this data item already exists in the database).
let brightness = 'settings.screen.brightness';
......@@ -97,7 +97,7 @@ If the specified data item exists in the database, the **setValueSync** method u
- Example
```typescript
import featureAbility from '@ohos.featureAbility';
import featureAbility from '@ohos.ability.featureAbility';
// Update the value of 'settings.screen.brightness'. (As this data item exists in the database, the setValueSync
method will update the value of the data item.)
......
......@@ -62,7 +62,7 @@ getValueSync(dataAbilityHelper: DataAbilityHelper, name: string, defValue: strin
- 示例:
```typescript
import featureAbility from '@ohos.featureAbility';
import featureAbility from '@ohos.ability.featureAbility';
//获取数据项亮度的值(该数据项在数据库中已存在)
let brightness = 'settings.screen.brightness';
......@@ -97,7 +97,7 @@ setValueSync(dataAbilityHelper: DataAbilityHelper, name: string, value: string):
- 示例:
```typescript
import featureAbility from '@ohos.featureAbility';
import featureAbility from '@ohos.ability.featureAbility';
//更新数据项亮度的值(该数据项在数据库中已存在,故setValueSync方法将更新该数据项的值)
let brightness = 'settings.screen.brightness';
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册