diff --git a/zh-cn/application-dev/reference/apis/js-apis-data-preferences.md b/zh-cn/application-dev/reference/apis/js-apis-data-preferences.md index 87a6b283986fb4d1bef5fbdb7cc5a3af32292b30..6ea0f90f9006fcf820564f3f798836a3284684f4 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-data-preferences.md +++ b/zh-cn/application-dev/reference/apis/js-apis-data-preferences.md @@ -405,13 +405,13 @@ has(key: string, callback: AsyncCallback<boolean>): void ```js preferences.has('startup', function (err, isExist) { if (err) { - console.info("Failed to check the key of 'startup'. Cause: " + err); + console.info("Failed to check the key 'startup'. Cause: " + err); return; } if (isExist) { - console.info("The key of 'startup' is contained."); + console.info("The key 'startup' is contained."); } else { - console.info("The key of 'startup' dose not contain."); + console.info("The key 'startup' dose not contain."); } }) ``` @@ -626,7 +626,7 @@ data_preferences.getPreferences(this.context, 'mystore', function (err, preferen return; } var observer = function (key) { - console.info("The key of " + key + " changed."); + console.info("The key " + key + " changed."); } preferences.on('change', observer); preferences.put('startup', 'auto', function (err) { @@ -670,7 +670,7 @@ data_preferences.getPreferences(this.context, 'mystore', function (err, preferen return; } var observer = function (key) { - console.info("The key of " + key + " changed."); + console.info("The key " + key + " changed."); } preferences.on('change', observer); preferences.put('startup', 'auto', function (err) {