未验证 提交 4329c1e4 编写于 作者: 葛亚芳 提交者: Gitee

update zh-cn/application-dev/reference/apis/js-apis-data-preferences.md.

Signed-off-by: N葛亚芳 <geyafang@huawei.com>
上级 d6c9a375
......@@ -825,7 +825,7 @@ on(type: 'change', callback: Callback&lt;{ key : string }&gt;): void
```js
data_preferences.getPreferences(this.context, 'mystore', function (err, preferences) {
if (err) {
console.info("Failed to Gget preferences.");
console.info("Failed to get preferences.");
return;
}
var observer = function (key) {
......@@ -871,7 +871,7 @@ off(type: 'change', callback?: Callback&lt;{ key : string }&gt;): void
```js
data_preferences.getPreferences(this.context, 'mystore', function (err, preferences) {
if (err) {
console.info("Failed to Gget preferences.");
console.info("Failed to get preferences.");
return;
}
var observer = function (key) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册