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

!20982 修改备份恢复文档中的示例代码错误

Merge pull request !20982 from 花轻似梦/master
......@@ -73,8 +73,8 @@ BackupExtensionAbility,是[Stage模型](../../application-dev/application-mode
"data/storage/el2/base/files/",
"data/storage/el2/base/preferences/",
"data/storage/el2/base/haps/*/database/",
"data/storage/el2/base/haps/*/base/files/",
"data/storage/el2/base/haps/*/base/preferences/",
"data/storage/el2/base/haps/*/files/",
"data/storage/el2/base/haps/*/preferences/",
]
}
```
......@@ -353,7 +353,7 @@ constructor(callbacks: GeneralCallbacks);
```js
import fs from '@ohos.file.fs';
let generalCallbacks = backup.GeneralCallbacks({
let generalCallbacks = ({
onFileReady: (err, file) => {
if (err) {
console.error('onFileReady failed with err: ' + err);
......@@ -568,7 +568,7 @@ constructor(callbacks: GeneralCallbacks);
```js
import fs from '@ohos.file.fs';
let generalCallbacks = backup.GeneralCallbacks({
let generalCallbacks = ({
onFileReady: (err, file) => {
if (err) {
console.error('onFileReady failed with err: ' + err);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册