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

!16017 [翻译完成】#I6MHNC

Merge pull request !16017 from Annie_wang/PR15897
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
> >
> The initial APIs of this module are supported since API version 9. Newly added APIs will be marked with a superscript to indicate their earliest API version. > The initial APIs of this module are supported since API version 9. Newly added APIs will be marked with a superscript to indicate their earliest API version.
**Picker** encapsulates system applications, such as **PhotoViewPicker**, **DocumentViewPicker**, and **AudioViewPicker**, and provides capabilities of selecting and saving photos, documents, and audio clips. The application can select the picker as required. **Picker** encapsulates system applications, such as **PhotoViewPicker**, **DocumentViewPicker**, and **AudioViewPicker**, and provides capabilities of selecting and saving images, videos, documents, and audio clips. The application can select the picker as required.
## Modules to Import ## Modules to Import
```js ```js
...@@ -394,7 +394,7 @@ async function example() { ...@@ -394,7 +394,7 @@ async function example() {
console.error('DocumentViewPicker.save failed with err: ' + err); console.error('DocumentViewPicker.save failed with err: ' + err);
}); });
} catch (err) { } catch (err) {
console.errort('DocumentViewPicker failed with err: ' + err); console.error('DocumentViewPicker failed with err: ' + err);
} }
} }
``` ```
...@@ -430,7 +430,7 @@ async function example() { ...@@ -430,7 +430,7 @@ async function example() {
console.info('DocumentViewPicker.save successfully, DocumentSaveResult uri: ' + JSON.stringify(DocumentSaveResult)); console.info('DocumentViewPicker.save successfully, DocumentSaveResult uri: ' + JSON.stringify(DocumentSaveResult));
}); });
} catch (err) { } catch (err) {
console.errort('DocumentViewPicker failed with err: ' + err); console.error('DocumentViewPicker failed with err: ' + err);
} }
} }
``` ```
...@@ -463,7 +463,7 @@ async function example() { ...@@ -463,7 +463,7 @@ async function example() {
console.info('DocumentViewPicker.save successfully, DocumentSaveResult uri: ' + JSON.stringify(DocumentSaveResult)); console.info('DocumentViewPicker.save successfully, DocumentSaveResult uri: ' + JSON.stringify(DocumentSaveResult));
}); });
} catch (err) { } catch (err) {
console.errort('DocumentViewPicker failed with err: ' + err); console.error('DocumentViewPicker failed with err: ' + err);
} }
} }
``` ```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册