提交 fb2d3a2e 编写于 作者: L lixiang 提交者: 李想

fixed e3c32531 from https://gitee.com/li-xiang335/docs/pulls/17607

modify storeWebArchive API description
Signed-off-by: Nlixiang <lixiang380@huawei.com>
上级 95aadd67
......@@ -2106,7 +2106,7 @@ storeWebArchive(baseName: string, autoName: boolean, callback: AsyncCallback\<st
| -------- | --------------------- | ---- | ------------------------------------------------------------ |
| baseName | string | 是 | 文件存储路径,该值不能为空。 |
| autoName | boolean | 是 | 决定是否自动生成文件名。 如果为false,则将baseName作为文件存储路径。 如果为true,则假定baseName是一个目录,将根据当前页的Url自动生成文件名。 |
| callback | AsyncCallback\<string> | 是 | 返回文件存储路径,保网页失败会返回null。 |
| callback | AsyncCallback\<string> | 是 | 返回文件存储路径,保网页失败会返回null。 |
**错误码:**
......@@ -2130,7 +2130,7 @@ struct WebComponent {
build() {
Column() {
Button('saveWebArchive')
Button('storeWebArchive')
.onClick(() => {
try {
this.controller.storeWebArchive("/data/storage/el2/base/", true, (error, filename) => {
......@@ -2195,7 +2195,7 @@ struct WebComponent {
build() {
Column() {
Button('saveWebArchive')
Button('storeWebArchive')
.onClick(() => {
try {
this.controller.storeWebArchive("/data/storage/el2/base/", true)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册