提交 5b331512 编写于 作者: Z zengyawen

LTS3.0 update docs

Signed-off-by: Nzengyawen <zengyawen1@huawei.com>
上级 16677384
# 应用开发导读<a name="ZH-CN_TOPIC_0000001123678714"></a>
# 应用开发导读<a name="ZH-CN_TOPIC_0000001162242674"></a>
应用开发文档用于指导开发者通过OpenHarmony提供的接口完成应用开发。当前应用开发文档提供了在标准系统上开发应用的JS接口。
在这部分中,开发者可以通过“[入门](quick-start/Readme-CN.md)”来了解应用开发的基本方法。完整的接口清单和参考使用指导可参见“[JS参考规范](js-reference/Readme-CN.md)”。
在这部分中,开发者可以通过“[入门](https://gitee.com/openharmony/docs/blob/5b6b26c33680dd1162a4df35c896e5ddefcb55b3/zh-cn/application-dev/quick-start/Readme-CN.md)”来了解应用开发的基本方法。完整的接口清单和参考使用指导可参见“[JS开发参考](https://gitee.com/openharmony/docs/blob/5b6b26c33680dd1162a4df35c896e5ddefcb55b3/zh-cn/application-dev/js-reference/Readme-CN.md)”。
除此之外,为方便开发者对常用功能进行深入理解,还提供了[UI](ui/Readme-CN.md)[媒体](media/Readme-CN.md)[网络与连接](connectivity/Readme-CN.md)三个模块的开发指南。
除此之外,为方便开发者对常用功能进行深入理解,还提供了[UI](https://gitee.com/openharmony/docs/blob/5b6b26c33680dd1162a4df35c896e5ddefcb55b3/zh-cn/application-dev/ui/Readme-CN.md)[媒体](https://gitee.com/openharmony/docs/blob/5b6b26c33680dd1162a4df35c896e5ddefcb55b3/zh-cn/application-dev/media/Readme-CN.md)[网络与连接](https://gitee.com/openharmony/docs/blob/5b6b26c33680dd1162a4df35c896e5ddefcb55b3/zh-cn/application-dev/connectivity/Readme-CN.md)三个模块的开发指南。
如果需要了解各子系统的原理和基本信息,可以参考“docs/zh-cn/readme”目录中各子系统readme的介绍。
# IPC与RPC通信<a name="ZH-CN_TOPIC_0000001157385969"></a>
- **[IPC与RPC通信概述](IPC与RPC通信概述.md)**
- **[IPC与RPC通信开发指导](IPC与RPC通信开发指导.md)**
- **[远端状态订阅开发实例](远端状态订阅开发实例.md)**
# 网络与连接
- [IPC与RPC通信](IPC与RPC通信.md)
- [IPC与RPC通信概述](IPC与RPC通信概述.md)
- [IPC与RPC通信开发指导](IPC与RPC通信开发指导.md)
- [远端状态订阅开发实例](远端状态订阅开发实例.md)
- [IPC与RPC通信](ipc-rpc.md)
- [IPC与RPC通信概述](ipc-rpc-overview.md)
- [IPC与RPC通信开发指导](ipc-rpc-development-guideline.md)
- [远端状态订阅开发实例](subscribe-remote-state.md)
# IPC与RPC通信<a name="ZH-CN_TOPIC_0000001157385969"></a>
- **[IPC与RPC通信概述](ipc-rpc-overview.md)**
- **[IPC与RPC通信开发指导](ipc-rpc-development-guideline.md)**
- **[远端状态订阅开发实例](subscribe-remote-state.md)**
此差异已折叠。
# Image对象<a name="ZH-CN_TOPIC_0000001115974752"></a>
- [属性](#zh-cn_topic_0000001058948927_section1968021961113)
- [示例](#zh-cn_topic_0000001058948927_section13457717134912)
图片对象。
## 属性<a name="zh-cn_topic_0000001058948927_section1968021961113"></a>
<a name="zh-cn_topic_0000001058948927_table1025010619328"></a>
<table><thead align="left"><tr id="zh-cn_topic_0000001058948927_row163667603219"><th class="cellrowborder" valign="top" width="21.8%" id="mcps1.1.6.1.1"><p id="zh-cn_topic_0000001058948927_p536646193210"><a name="zh-cn_topic_0000001058948927_p536646193210"></a><a name="zh-cn_topic_0000001058948927_p536646193210"></a>属性</p>
</th>
<th class="cellrowborder" valign="top" width="22.34%" id="mcps1.1.6.1.2"><p id="zh-cn_topic_0000001058948927_p7366166163213"><a name="zh-cn_topic_0000001058948927_p7366166163213"></a><a name="zh-cn_topic_0000001058948927_p7366166163213"></a>类型</p>
</th>
<th class="cellrowborder" valign="top" width="7.9799999999999995%" id="mcps1.1.6.1.3"><p id="zh-cn_topic_0000001058948927_p143661564327"><a name="zh-cn_topic_0000001058948927_p143661564327"></a><a name="zh-cn_topic_0000001058948927_p143661564327"></a>默认值</p>
</th>
<th class="cellrowborder" valign="top" width="11.73%" id="mcps1.1.6.1.4"><p id="zh-cn_topic_0000001058948927_p11366264324"><a name="zh-cn_topic_0000001058948927_p11366264324"></a><a name="zh-cn_topic_0000001058948927_p11366264324"></a>必填</p>
</th>
<th class="cellrowborder" valign="top" width="36.15%" id="mcps1.1.6.1.5"><p id="zh-cn_topic_0000001058948927_p636619618325"><a name="zh-cn_topic_0000001058948927_p636619618325"></a><a name="zh-cn_topic_0000001058948927_p636619618325"></a>描述</p>
</th>
</tr>
</thead>
<tbody><tr id="zh-cn_topic_0000001058948927_row936656193210"><td class="cellrowborder" valign="top" width="21.8%" headers="mcps1.1.6.1.1 "><p id="zh-cn_topic_0000001058948927_p1436610643211"><a name="zh-cn_topic_0000001058948927_p1436610643211"></a><a name="zh-cn_topic_0000001058948927_p1436610643211"></a>src</p>
</td>
<td class="cellrowborder" valign="top" width="22.34%" headers="mcps1.1.6.1.2 "><p id="zh-cn_topic_0000001058948927_p4366156183210"><a name="zh-cn_topic_0000001058948927_p4366156183210"></a><a name="zh-cn_topic_0000001058948927_p4366156183210"></a>string</p>
</td>
<td class="cellrowborder" valign="top" width="7.9799999999999995%" headers="mcps1.1.6.1.3 "><p id="zh-cn_topic_0000001058948927_p193667616322"><a name="zh-cn_topic_0000001058948927_p193667616322"></a><a name="zh-cn_topic_0000001058948927_p193667616322"></a>-</p>
</td>
<td class="cellrowborder" valign="top" width="11.73%" headers="mcps1.1.6.1.4 "><p id="zh-cn_topic_0000001058948927_p636611610320"><a name="zh-cn_topic_0000001058948927_p636611610320"></a><a name="zh-cn_topic_0000001058948927_p636611610320"></a></p>
</td>
<td class="cellrowborder" valign="top" width="36.15%" headers="mcps1.1.6.1.5 "><p id="zh-cn_topic_0000001058948927_p13366106173215"><a name="zh-cn_topic_0000001058948927_p13366106173215"></a><a name="zh-cn_topic_0000001058948927_p13366106173215"></a>图片资源的路径。。</p>
</td>
</tr>
<tr id="zh-cn_topic_0000001058948927_row13366969325"><td class="cellrowborder" valign="top" width="21.8%" headers="mcps1.1.6.1.1 "><p id="zh-cn_topic_0000001058948927_p13366136183210"><a name="zh-cn_topic_0000001058948927_p13366136183210"></a><a name="zh-cn_topic_0000001058948927_p13366136183210"></a>width</p>
</td>
<td class="cellrowborder" valign="top" width="22.34%" headers="mcps1.1.6.1.2 "><p id="zh-cn_topic_0000001058948927_p73668623216"><a name="zh-cn_topic_0000001058948927_p73668623216"></a><a name="zh-cn_topic_0000001058948927_p73668623216"></a>&lt;length&gt;</p>
</td>
<td class="cellrowborder" valign="top" width="7.9799999999999995%" headers="mcps1.1.6.1.3 "><p id="zh-cn_topic_0000001058948927_p8366206123215"><a name="zh-cn_topic_0000001058948927_p8366206123215"></a><a name="zh-cn_topic_0000001058948927_p8366206123215"></a>0px</p>
</td>
<td class="cellrowborder" valign="top" width="11.73%" headers="mcps1.1.6.1.4 "><p id="zh-cn_topic_0000001058948927_p636617633210"><a name="zh-cn_topic_0000001058948927_p636617633210"></a><a name="zh-cn_topic_0000001058948927_p636617633210"></a></p>
</td>
<td class="cellrowborder" valign="top" width="36.15%" headers="mcps1.1.6.1.5 "><p id="zh-cn_topic_0000001058948927_p123661613324"><a name="zh-cn_topic_0000001058948927_p123661613324"></a><a name="zh-cn_topic_0000001058948927_p123661613324"></a>图片的宽度。</p>
</td>
</tr>
<tr id="zh-cn_topic_0000001058948927_row103661365321"><td class="cellrowborder" valign="top" width="21.8%" headers="mcps1.1.6.1.1 "><p id="zh-cn_topic_0000001058948927_p163663610321"><a name="zh-cn_topic_0000001058948927_p163663610321"></a><a name="zh-cn_topic_0000001058948927_p163663610321"></a>height</p>
</td>
<td class="cellrowborder" valign="top" width="22.34%" headers="mcps1.1.6.1.2 "><p id="zh-cn_topic_0000001058948927_p03673613324"><a name="zh-cn_topic_0000001058948927_p03673613324"></a><a name="zh-cn_topic_0000001058948927_p03673613324"></a>&lt;length&gt;</p>
</td>
<td class="cellrowborder" valign="top" width="7.9799999999999995%" headers="mcps1.1.6.1.3 "><p id="zh-cn_topic_0000001058948927_p113674614326"><a name="zh-cn_topic_0000001058948927_p113674614326"></a><a name="zh-cn_topic_0000001058948927_p113674614326"></a>0px</p>
</td>
<td class="cellrowborder" valign="top" width="11.73%" headers="mcps1.1.6.1.4 "><p id="zh-cn_topic_0000001058948927_p3367566327"><a name="zh-cn_topic_0000001058948927_p3367566327"></a><a name="zh-cn_topic_0000001058948927_p3367566327"></a></p>
</td>
<td class="cellrowborder" valign="top" width="36.15%" headers="mcps1.1.6.1.5 "><p id="zh-cn_topic_0000001058948927_p43671663322"><a name="zh-cn_topic_0000001058948927_p43671663322"></a><a name="zh-cn_topic_0000001058948927_p43671663322"></a>图片的高度。</p>
</td>
</tr>
<tr id="zh-cn_topic_0000001058948927_row18346152013215"><td class="cellrowborder" valign="top" width="21.8%" headers="mcps1.1.6.1.1 "><p id="zh-cn_topic_0000001058948927_p1033772416322"><a name="zh-cn_topic_0000001058948927_p1033772416322"></a><a name="zh-cn_topic_0000001058948927_p1033772416322"></a>onload</p>
</td>
<td class="cellrowborder" valign="top" width="22.34%" headers="mcps1.1.6.1.2 "><p id="zh-cn_topic_0000001058948927_p1337202419320"><a name="zh-cn_topic_0000001058948927_p1337202419320"></a><a name="zh-cn_topic_0000001058948927_p1337202419320"></a>Function</p>
</td>
<td class="cellrowborder" valign="top" width="7.9799999999999995%" headers="mcps1.1.6.1.3 "><p id="zh-cn_topic_0000001058948927_p137953293211"><a name="zh-cn_topic_0000001058948927_p137953293211"></a><a name="zh-cn_topic_0000001058948927_p137953293211"></a>-</p>
</td>
<td class="cellrowborder" valign="top" width="11.73%" headers="mcps1.1.6.1.4 "><p id="zh-cn_topic_0000001058948927_p153471320113217"><a name="zh-cn_topic_0000001058948927_p153471320113217"></a><a name="zh-cn_topic_0000001058948927_p153471320113217"></a></p>
</td>
<td class="cellrowborder" valign="top" width="36.15%" headers="mcps1.1.6.1.5 "><p id="zh-cn_topic_0000001058948927_p7337142443214"><a name="zh-cn_topic_0000001058948927_p7337142443214"></a><a name="zh-cn_topic_0000001058948927_p7337142443214"></a>图片加载成功后触发该事件,无参数。</p>
</td>
</tr>
<tr id="zh-cn_topic_0000001058948927_row455917203329"><td class="cellrowborder" valign="top" width="21.8%" headers="mcps1.1.6.1.1 "><p id="zh-cn_topic_0000001058948927_p107821651123213"><a name="zh-cn_topic_0000001058948927_p107821651123213"></a><a name="zh-cn_topic_0000001058948927_p107821651123213"></a>onerror</p>
</td>
<td class="cellrowborder" valign="top" width="22.34%" headers="mcps1.1.6.1.2 "><p id="zh-cn_topic_0000001058948927_p147828514328"><a name="zh-cn_topic_0000001058948927_p147828514328"></a><a name="zh-cn_topic_0000001058948927_p147828514328"></a>Function</p>
</td>
<td class="cellrowborder" valign="top" width="7.9799999999999995%" headers="mcps1.1.6.1.3 "><p id="zh-cn_topic_0000001058948927_p19161175419328"><a name="zh-cn_topic_0000001058948927_p19161175419328"></a><a name="zh-cn_topic_0000001058948927_p19161175419328"></a>-</p>
</td>
<td class="cellrowborder" valign="top" width="11.73%" headers="mcps1.1.6.1.4 "><p id="zh-cn_topic_0000001058948927_p0559142083215"><a name="zh-cn_topic_0000001058948927_p0559142083215"></a><a name="zh-cn_topic_0000001058948927_p0559142083215"></a></p>
</td>
<td class="cellrowborder" valign="top" width="36.15%" headers="mcps1.1.6.1.5 "><p id="zh-cn_topic_0000001058948927_p1778212512329"><a name="zh-cn_topic_0000001058948927_p1778212512329"></a><a name="zh-cn_topic_0000001058948927_p1778212512329"></a>图片加载失败后触发该事件,无参数。</p>
</td>
</tr>
</tbody>
</table>
## 示例<a name="zh-cn_topic_0000001058948927_section13457717134912"></a>
```
var ctx = this.$element('drawImage').getContext('2d');
var img = new Image();
img.src = 'common/image/huawei.jpg';
img.onload = function() {
console.log('Image load success');
ctx.drawImage(img, 200, 200);
};
img.onerror = function() {
console.log('Image load fail');
};
```
# JS参考规范
# JS开发参考
- [框架说明](框架说明.md)
- [文件组织](文件组织.md)
- [js标签配置](js标签配置.md)
- [app.js](app-js.md)
- [语法](语法.md)
- [HML语法参考](HML语法参考.md)
- [CSS语法参考](CSS语法参考.md)
- [JS语法参考](JS语法参考.md)
- [框架说明](js-framework.md)
- [文件组织](js-framework-file.md)
- [js标签配置](js-framework-js-tag.md)
- [app.js](js-framework-js-file.md)
- [语法](js-framework-syntax.md)
- [HML语法参考](js-framework-syntax-hml.md)
- [CSS语法参考](js-framework-syntax-css.md)
- [JS语法参考](js-framework-syntax-js.md)
- [组件](组件.md)
- [通用](通用.md)
- [组件方法](组件方法.md)
- [动画样式](动画样式.md)
- [渐变样式](渐变样式.md)
- [转场样式](转场样式.md)
- [自定义字体样式](自定义字体样式.md)
- [原子布局](原子布局.md)
- [生命周期](js-framework-lifecycle.md)
- [资源限定与访问](js-framework-resource-restriction.md)
- [多语言支持](js-framework-multiple-languages.md)
- [容器组件](容器组件.md)
- [badge](badge.md)
- [dialog](dialog.md)
- [div](div.md)
- [list](list.md)
- [list-item](list-item.md)
- [list-item-group](list-item-group.md)
- [panel](panel.md)
- [popup](popup.md)
- [refresh](refresh.md)
- [stack](stack.md)
- [stepper](stepper.md)
- [stepper-item](stepper-item.md)
- [swiper](swiper.md)
- [tabs](tabs.md)
- [tab-bar](tab-bar.md)
- [tab-content](tab-content.md)
- [组件](component/Readme-CN.md)
- [通用](component/js-components-common.md)
- [通用属性](component/js-components-common-attributes.md)
- [通用样式](component/js-components-common-styles.md)
- [通用事件](component/js-components-common-events.md)
- [通用方法](component/js-components-common-methods.md)
- [动画样式](component/js-components-common-animation.md)
- [渐变样式](component/js-components-common-gradient.md)
- [转场样式](component/js-components-common-transition.md)
- [媒体查询](component/js-components-common-mediaquery.md)
- [自定义字体样式](component/js-components-common-customizing-font.md)
- [原子布局](component/js-components-common-atomic-layout.md)
- [基础组件](基础组件.md)
- [button](button.md)
- [chart](chart.md)
- [divider](divider.md)
- [image](image.md)
- [image-animator](image-animator.md)
- [input](input.md)
- [label](label.md)
- [marquee](marquee.md)
- [menu](menu.md)
- [option](option.md)
- [picker](picker.md)
- [picker-view](picker-view.md)
- [piece](piece.md)
- [progress](progress.md)
- [qrcode](qrcode.md)
- [rating](rating.md)
- [select](select.md)
- [slider](slider.md)
- [span](span.md)
- [switch](switch.md)
- [text](text.md)
- [toolbar](toolbar.md)
- [toolbar-item](toolbar-item.md)
- [toggle](toggle.md)
- [容器组件](component/js-components-container.md)
- [badge](component/js-components-container-badge.md)
- [dialog](component/js-components-container-dialog.md)
- [div](component/js-components-container-div.md)
- [form](component/js-components-container-form.md)
- [list](component/js-components-container-list.md)
- [list-item](component/js-components-container-list-item.md)
- [list-item-group](component/js-components-container-list-item-group.md)
- [panel](component/js-components-container-panel.md)
- [popup](component/js-components-container-popup.md)
- [refresh](component/js-components-container-refresh.md)
- [stack](component/js-components-container-stack.md)
- [stepper](component/js-components-container-stepper.md)
- [stepper-item](component/js-components-container-stepper-item.md)
- [swiper](component/js-components-container-swiper.md)
- [tabs](component/js-components-container-tabs.md)
- [tab-bar](component/js-components-container-tab-bar.md)
- [tab-content](component/js-components-container-tab-content.md)
- [媒体组件](媒体组件.md)
- [Camera](Camera.md)
- [基础组件](component/js-components-basic.md)
- [button](component/js-components-basic-button.md)
- [chart](component/js-components-basic-chart.md)
- [divider](component/js-components-basic-divider.md)
- [image](component/js-components-basic-image.md)
- [image-animator](component/js-components-basic-image-animator.md)
- [input](component/js-components-basic-input.md)
- [label](component/js-components-basic-label.md)
- [marquee](component/js-components-basic-marquee.md)
- [menu](component/js-components-basic-menu.md)
- [option](component/js-components-basic-option.md)
- [picker](component/js-components-basic-picker.md)
- [picker-view](component/js-components-basic-picker-view.md)
- [piece](component/js-components-basic-piece.md)
- [progress](component/js-components-basic-progress.md)
- [qrcode](component/js-components-basic-qrcode.md)
- [rating](component/js-components-basic-rating.md)
- [richtext](component/js-components-basic-richtext.md)
- [search](component/js-components-basic-search.md)
- [select](component/js-components-basic-select.md)
- [slider](component/js-components-basic-slider.md)
- [span](component/js-components-basic-span.md)
- [switch](component/js-components-basic-switch.md)
- [text](component/js-components-basic-text.md)
- [textarea](component/js-components-basic-textarea.md)
- [toolbar](component/js-components-basic-toolbar.md)
- [toolbar-item](component/js-components-basic-toolbar-item.md)
- [toggle](component/js-components-basic-toggle.md)
- [画布组件](画布组件.md)
- [canvas组件](canvas组件.md)
- [CanvasRenderingContext2D对象](CanvasRenderingContext2D对象.md)
- [Image对象](Image对象.md)
- [CanvasGradient对象](CanvasGradient对象.md)
- [ImageData对象](ImageData对象.md)
- [媒体组件](component/js-components-media.md)
- [video](component/js-components-media-video.md)
- [栅格组件](栅格组件.md)
- [基本概念](基本概念.md)
- [grid-container](grid-container.md)
- [grid-row](grid-row.md)
- [grid-col](grid-col.md)
- [画布组件](component/js-components-canvas.md)
- [canvas组件](component/js-components-canvas-canvas.md)
- [CanvasRenderingContext2D对象](component/js-components-canvas-canvasrenderingcontext2d.md)
- [Image对象](component/js-components-canvas-image.md)
- [CanvasGradient对象](component/js-components-canvas-canvasgradient.md)
- [ImageData对象](component/js-components-canvas-imagedata.md)
- [Path2D对象](component/js-components-canvas-path2d.md)
- [ImageBitmap对象](component/js-components-canvas-imagebitmap.md)
- [OffscreenCanvas对象](component/js-components-canvas-offscreencanvas.md)
- [OffscreenCanvasRenderingContext2D对象](component/js-components-canvas-offscreencanvasrenderingcontext2d.md)
- [自定义组件](自定义组件.md)
- [基本用法](基本用法.md)
- [自定义事件](自定义事件.md)
- [Props](Props.md)
- [事件参数](事件参数.md)
- [栅格组件](component/js-components-grid.md)
- [基本概念](component/js-components-grid-basic-concepts.md)
- [grid-container](component/js-components-grid-container.md)
- [grid-row](component/js-components-grid-row.md)
- [grid-col](component/js-components-grid-col.md)
- [组件通用说明](组件通用说明.md)
- [通用事件](通用事件.md)
- [通用属性](通用属性.md)
- [通用样式](通用样式.md)
- [svg组件](component/js-components-svg.md)
- [通用属性](component/js-components-svg-common-attributes.md)
- [svg](component/js-components-svg-0.md)
- [rect](component/js-components-svg-rect.md)
- [circle](component/js-components-svg-circle.md)
- [ellipse](component/js-components-svg-ellipse.md)
- [path](component/js-components-svg-path.md)
- [line](component/js-components-svg-line.md)
- [polyline](component/js-components-svg-polyline.md)
- [polygon](component/js-components-svg-polygon.md)
- [text](component/js-components-svg-text.md)
- [tspan](component/js-components-svg-tspan.md)
- [textPath](component/js-components-svg-textpath.md)
- [animate](component/js-components-svg-animate.md)
- [animateMotion](component/js-components-svg-animate-motion.md)
- [animateTransform](component/js-components-svg-animate-transform.md)
- [自定义组件](component/js-components-custom.md)
- [基本用法](component/js-components-custom-basic-usage.md)
- [自定义事件](component/js-components-custom-events.md)
- [Props](component/js-components-custom-props.md)
- [事件参数](component/js-components-custom-event-parameter.md)
- [slot插槽](component/js-components-custom-slot.md)
- [生命周期定义](component/js-components-custom-lifecycle.md)
- [接口](apis/Readme-CN.md)
- Ability框架
- [FeatureAbility模块](apis/js-apis-featureAbility.md)
- [ParticleAbility模块](apis/js-apis-particleAbility.md)
- [DataAbilityHelper模块](apis/js-apis-dataAbilityHelper.md)
- [DataUriUtils模块](apis/js-apis-DataUriUtils.md)
- [Bundle模块](apis/js-apis-Bundle.md)
- [CommonEvent模块](apis/js-apis-commonEvent.md)
- [Notification模块](apis/js-apis-notification.md)
- [Context模块](apis/js-apis-Context.md)
- [基本功能](apis/js-apis-basic-features.md)
- [应用上下文](apis/js-apis-system-app.md)
- [日志打印](apis/js-apis-basic-features-logs.md)
- [页面路由](apis/js-apis-system-router.md)
- [弹窗](apis/js-apis-system-prompt.md)
- [应用配置](apis/js-apis-system-configuration.md)
- [定时器](apis/js-apis-system-timer.md)
- [动画](apis/js-apis-animator.md)
- [应用打点](apis/js-apis-hiappevent.md)
- [性能打点](apis/js-apis-bytrace.md)
- [分布式帐号管理](apis/js-apis-distributedaccount.md)
- [媒体](apis/js-apis-multmedia.md)
- [音频管理](apis/js-apis-audio.md)
- [音频播放](apis/js-apis-media.md)
- 网络与连接
- [拨打电话](apis/js-apis-call.md)
- [短信服务](apis/js-apis-sms.md)
- [SIM卡管理](apis/js-apis-sim.md)
- [网络搜索](apis/js-apis-radio.md)
- [数据管理](apis/js-apis-data.md)
- [文件管理](apis/js-apis-fileio.md)
- [单版本分布式数据库](apis/js-apis-data-singlekvstore.md)
- [创建和获取分布式数据库](apis/js-apis-data-kvmanager.md)
- [KVManager配置信息](apis/js-apis-data-kvmanager-config.md)
- [分布式数据库操作描述](apis/js-apis-data-kvstore.md)
- [数据类型描述](apis/js-apis-data-type.md)
- [轻量级存储](apis/js-apis-data-storage.md)
- [设备管理](apis/js-apis-device-mgmt.md)
- [设备信息](apis/js-apis-deviceinfo.md)
- [系统属性](apis/js-apis-systemparameter.md)
- [系统恢复](apis/js-apis-update.md)
- [显示设备属性](apis/js-apis-display.md)
- [电池和充电属性](apis/js-apis-batteryinfo.md)
- [设置系统屏幕亮度](apis/js-apis-brightness.md)
- [系统电源管理](apis/js-apis-power.md)
- [Runninglock锁](apis/js-apis-runninglock.md)
- [传感器](apis/js-apis-sensor.md)
- [振动](apis/js-apis-vibrate.md)
- [国际化(I18n)](apis/js-apis-i18n.md)
- [国际化(Intl)](apis/js-apis-intl.md)
- [资源管理](apis/js-apis-resourcemanage.md)
- [时间设置](apis/js-apis-systemtime.md)
- [升级](apis/js-apis-libupdateclient.md)
- [获取进程相关的信息](apis/js-apis-process.md)
- [字符串编解码](apis/js-apis-util.md)
- [启动一个worker](apis/js-apis-worker.md)
- [URL字符串解析](apis/js-apis-url.md)
- [接口](接口.md)
- [日志打印](日志打印.md)
- [应用打点](应用打点.md)
- [页面路由](页面路由.md)
- [弹窗](弹窗.md)
- [定时器](定时器.md)
- [时间设置](时间设置.md)
- [音频管理](音频管理.md)
- [音频播放](音频播放.md)
- [设备信息](设备信息.md)
- [系统属性](系统属性.md)
- [电池和充电属性](电池和充电属性.md)
- [设置系统屏幕亮度](设置系统屏幕亮度.md)
- [国际化](国际化.md)
- [资源管理](资源管理.md)
- [升级](升级.md)
- [文件管理](文件管理.md)
- [文件存储](文件存储.md)
\ No newline at end of file
# 接口<a name="ZH-CN_TOPIC_0000001164290698"></a>
- Ability框架
- [FeatureAbility模块](js-apis-featureAbility.md)
- [ParticleAbility模块](js-apis-particleAbility.md)
- [DataAbilityHelper模块](js-apis-dataAbilityHelper.md)
- [DataUriUtils模块](js-apis-DataUriUtils.md)
- [Bundle模块](js-apis-Bundle.md)
- [CommonEvent模块](js-apis-commonEvent.md)
- [Notification模块](js-apis-notification.md)
- [Context模块](js-apis-Context.md)
- [基本功能](js-apis-basic-features.md)
- [应用上下文](js-apis-system-app.md)
- [日志打印](js-apis-basic-features-logs.md)
- [页面路由](js-apis-system-router.md)
- [弹窗](js-apis-system-prompt.md)
- [应用配置](js-apis-system-configuration.md)
- [定时器](js-apis-system-timer.md)
- [动画](js-apis-animator.md)
- [应用打点](js-apis-hiappevent.md)
- [性能打点](js-apis-bytrace.md)
- [分布式帐号管理](js-apis-distributedaccount.md)
- [媒体](js-apis-multmedia.md)
- [音频管理](js-apis-audio.md)
- [音频播放](js-apis-media.md)
- 网络与连接
- [拨打电话](js-apis-call.md)
- [短信服务](js-apis-sms.md)
- [SIM卡管理](js-apis-sim.md)
- [网络搜索](js-apis-radio.md)
- [数据管理](js-apis-data.md)
- [文件管理](js-apis-fileio.md)
- [单版本分布式数据库](js-apis-data-singlekvstore.md)
- [创建和获取分布式数据库](js-apis-data-kvmanager.md)
- [KVManager配置信息](js-apis-data-kvmanager-config.md)
- [分布式数据库操作描述](js-apis-data-kvstore.md)
- [数据类型描述](js-apis-data-type.md)
- [轻量级存储](js-apis-data-storage.md)
- [设备管理](js-apis-device-mgmt.md)
- [设备信息](js-apis-deviceinfo.md)
- [系统属性](js-apis-systemparameter.md)
- [系统恢复](js-apis-update.md)
- [显示设备属性](js-apis-display.md)
- [电池和充电属性](js-apis-batteryinfo.md)
- [设置系统屏幕亮度](js-apis-brightness.md)
- [系统电源管理](js-apis-power.md)
- [Runninglock锁](js-apis-runninglock.md)
- [传感器](js-apis-sensor.md)
- [振动](js-apis-vibrate.md)
- [国际化(I18n)](js-apis-i18n.md)
- [国际化(Intl)](js-apis-intl.md)
- [资源管理](js-apis-resourcemanage.md)
- [时间设置](js-apis-systemtime.md)
- [升级](js-apis-libupdateclient.md)
- [获取进程相关的信息](js-apis-process.md)
- [字符串编解码](js-apis-util.md)
- [启动一个worker](js-apis-worker.md)
- [URL字符串解析](js-apis-url.md)
### DataUriUtils模块(JS端SDK接口)
#### 支持设备
| API | 手机 | 平板 | 智慧屏 | 智能穿戴 | 轻量级智能穿戴 | 智慧视觉设备 |
| ---------------------------------------------- | ---- | ---- | ------ | -------- | -------------- | ------------ |
| DataUriUtils.getId(uri: string) | 支持 | 支持 | 支持 | 支持 | 不支持 | 不支持 |
| DataUriUtils.attachId(uri: string, id: number) | 支持 | 支持 | 支持 | 支持 | 不支持 | 不支持 |
| DataUriUtils.deleteId(uri: string) | 支持 | 支持 | 支持 | 支持 | 不支持 | 不支持 |
| DataUriUtils.updateId(uri: string, id: number) | 支持 | 支持 | 支持 | 支持 | 不支持 | 不支持 |
#### 权限列表
ohos.permission.RUNNING_LOCK permission
#### 导入模块
```js
import notify from '@ohos.ability.dataUriUtils';
```
#### DataUriUtils.getId(uri: string)
- 接口说明
获取附加到给定uri的路径组件末尾的ID
- 参数描述
| 名称 | 读写属性 | 类型 | 必填 | 描述 |
| ---- | -------- | ------ | ---- | ------------------------- |
| uri | 只读 | string | 是 | 指示要从中获取ID的uri对象 |
- 返回值
附加到路径组件末尾的ID
- 示例
```js
import dataUriUtils from '@ohos.ability.datauriutils'
dataUriUtils.getIdSync("com.example.dataUriUtils/1221")
```
#### DataUriUtils.attachId(uri: string, id: number)
- 接口说明
将给定ID附加到给定uri的路径组件的末尾
- 参数描述
| 名称 | 读写属性 | 类型 | 必填 | 描述 |
| ---- | -------- | ------ | ---- | ------------------------- |
| uri | 只读 | string | 是 | 指示要从中获取ID的uri对象 |
| id | 只读 | number | 是 | 指示要附加的ID |
- 返回值
附加给定ID的uri对象
- 示例
```js
import dataUriUtils from '@ohos.ability.datauriutils'
var idint = 1122;
dataUriUtils.attachId(
"com.example.dataUriUtils"
idint,
)
```
#### DataUriUtils.deleteId(uri: string)
- 接口说明
从给定uri的路径组件的末尾删除ID
- 参数描述
| 名称 | 读写属性 | 类型 | 必填 | 描述 |
| ---- | -------- | ------ | ---- | ------------------------- |
| uri | 只读 | string | 是 | 指示要从中删除ID的uri对象 |
- 返回值
ID已删除的uri对象
- 示例
```js
import dataUriUtils from '@ohos.ability.datauriutils'
dataUriUtils.deleteId("com.example.dataUriUtils/1221")
```
#### DataUriUtils.updateId(uri: string, id: number)
- 接口说明
更新指定uri中的ID
- updateId参数描述
| 名称 | 读写属性 | 类型 | 必填 | 描述 |
| ---- | -------- | ------ | ---- | ------------------- |
| uri | 只读 | string | 是 | 指示要更新的uri对象 |
| id | 只读 | number | 是 | 指示新ID |
- 返回值
更新的uri对象
- 示例
```js
import dataUriUtils from '@ohos.ability.datauriutils'
var idint = 1122;
dataUriUtils.updateId(
"com.example.dataUriUtils"
idint,
)
```
### DataUriUtils模块(JS端SDK接口)
#### 支持设备
| API | 手机 | 平板 | 智慧屏 | 智能穿戴 | 轻量级智能穿戴 | 智慧视觉设备 |
| ---------------------------------------------- | ---- | ---- | ------ | -------- | -------------- | ------------ |
| DataUriUtils.getId(uri: string) | 支持 | 支持 | 支持 | 支持 | 不支持 | 不支持 |
| DataUriUtils.attachId(uri: string, id: number) | 支持 | 支持 | 支持 | 支持 | 不支持 | 不支持 |
| DataUriUtils.deleteId(uri: string) | 支持 | 支持 | 支持 | 支持 | 不支持 | 不支持 |
| DataUriUtils.updateId(uri: string, id: number) | 支持 | 支持 | 支持 | 支持 | 不支持 | 不支持 |
#### 权限列表
ohos.permission.RUNNING_LOCK permission
#### 导入模块
```js
import notify from '@ohos.ability.dataUriUtils';
```
#### DataUriUtils.getId(uri: string)
- 接口说明
获取附加到给定uri的路径组件末尾的ID
- 参数描述
| 名称 | 读写属性 | 类型 | 必填 | 描述 |
| ---- | -------- | ------ | ---- | ------------------------- |
| uri | 只读 | string | 是 | 指示要从中获取ID的uri对象 |
- 返回值
附加到路径组件末尾的ID
- 示例
```js
import dataUriUtils from '@ohos.ability.datauriutils'
dataUriUtils.getIdSync("com.example.dataUriUtils/1221")
```
#### DataUriUtils.attachId(uri: string, id: number)
- 接口说明
将给定ID附加到给定uri的路径组件的末尾
- 参数描述
| 名称 | 读写属性 | 类型 | 必填 | 描述 |
| ---- | -------- | ------ | ---- | ------------------------- |
| uri | 只读 | string | 是 | 指示要从中获取ID的uri对象 |
| id | 只读 | number | 是 | 指示要附加的ID |
- 返回值
附加给定ID的uri对象
- 示例
```js
import dataUriUtils from '@ohos.ability.datauriutils'
var idint = 1122;
dataUriUtils.attachId(
"com.example.dataUriUtils"
idint,
)
```
#### DataUriUtils.deleteId(uri: string)
- 接口说明
从给定uri的路径组件的末尾删除ID
- 参数描述
| 名称 | 读写属性 | 类型 | 必填 | 描述 |
| ---- | -------- | ------ | ---- | ------------------------- |
| uri | 只读 | string | 是 | 指示要从中删除ID的uri对象 |
- 返回值
ID已删除的uri对象
- 示例
```js
import dataUriUtils from '@ohos.ability.datauriutils'
dataUriUtils.deleteId("com.example.dataUriUtils/1221")
```
#### DataUriUtils.updateId(uri: string, id: number)
- 接口说明
更新指定uri中的ID
- updateId参数描述
| 名称 | 读写属性 | 类型 | 必填 | 描述 |
| ---- | -------- | ------ | ---- | ------------------- |
| uri | 只读 | string | 是 | 指示要更新的uri对象 |
| id | 只读 | number | 是 | 指示新ID |
- 返回值
更新的uri对象
- 示例
```js
import dataUriUtils from '@ohos.ability.datauriutils'
var idint = 1122;
dataUriUtils.updateId(
"com.example.dataUriUtils"
idint,
)
```
# 基本功能<a name="ZH-CN_TOPIC_0000001209210689"></a>
- **[应用上下文](js-apis-system-app.md)**
- **[日志打印](js-apis-basic-features-logs.md)**
- **[页面路由](js-apis-system-router.md)**
- **[弹窗](js-apis-system-prompt.md)**
- **[应用配置](js-apis-system-configuration.md)**
- **[定时器](js-apis-system-timer.md)**
- **[动画](js-apis-animator.md)**
- **[应用打点](js-apis-hiappevent.md)**
- **[性能打点](js-apis-bytrace.md)**
- **[分布式帐号管理](js-apis-distributedaccount.md)**
# 设置系统屏幕亮度<a name="ZH-CN_TOPIC_0000001209252189"></a>
- [导入模块](#zh-cn_topic_0000001163808920_s56d19203690d4782bfc74069abb6bd71)
- [brightness.setValue](#zh-cn_topic_0000001163808920_section1853612361618)
>![](../../public_sys-resources/icon-note.gif) **说明:**
>从 API Version 7 开始支持。
## 导入模块<a name="zh-cn_topic_0000001163808920_s56d19203690d4782bfc74069abb6bd71"></a>
```
import brightness from '@ohos.brightness.d.ts'.
```
## brightness.setValue<a name="zh-cn_topic_0000001163808920_section1853612361618"></a>
setValue\(value: number\)
设置系统的屏幕亮度。
- 参数:
<a name="zh-cn_topic_0000001163808920_table888613685714"></a>
<table><thead align="left"><tr id="zh-cn_topic_0000001163808920_row1988683685713"><th class="cellrowborder" valign="top" width="11.03%" id="mcps1.1.5.1.1"><p id="zh-cn_topic_0000001163808920_p1488693625712"><a name="zh-cn_topic_0000001163808920_p1488693625712"></a><a name="zh-cn_topic_0000001163808920_p1488693625712"></a>参数名</p>
</th>
<th class="cellrowborder" valign="top" width="11.64%" id="mcps1.1.5.1.2"><p id="zh-cn_topic_0000001163808920_p1886173613571"><a name="zh-cn_topic_0000001163808920_p1886173613571"></a><a name="zh-cn_topic_0000001163808920_p1886173613571"></a>类型</p>
</th>
<th class="cellrowborder" valign="top" width="7.1499999999999995%" id="mcps1.1.5.1.3"><p id="zh-cn_topic_0000001163808920_p128861336155714"><a name="zh-cn_topic_0000001163808920_p128861336155714"></a><a name="zh-cn_topic_0000001163808920_p128861336155714"></a>必填</p>
</th>
<th class="cellrowborder" valign="top" width="70.17999999999999%" id="mcps1.1.5.1.4"><p id="zh-cn_topic_0000001163808920_p3886143617571"><a name="zh-cn_topic_0000001163808920_p3886143617571"></a><a name="zh-cn_topic_0000001163808920_p3886143617571"></a>说明</p>
</th>
</tr>
</thead>
<tbody><tr id="zh-cn_topic_0000001163808920_row9886133613577"><td class="cellrowborder" valign="top" width="11.03%" headers="mcps1.1.5.1.1 "><p id="zh-cn_topic_0000001163808920_p14886163695720"><a name="zh-cn_topic_0000001163808920_p14886163695720"></a><a name="zh-cn_topic_0000001163808920_p14886163695720"></a>value</p>
</td>
<td class="cellrowborder" valign="top" width="11.64%" headers="mcps1.1.5.1.2 "><p id="zh-cn_topic_0000001163808920_p9886123605716"><a name="zh-cn_topic_0000001163808920_p9886123605716"></a><a name="zh-cn_topic_0000001163808920_p9886123605716"></a>number</p>
</td>
<td class="cellrowborder" valign="top" width="7.1499999999999995%" headers="mcps1.1.5.1.3 "><p id="zh-cn_topic_0000001163808920_p988723618577"><a name="zh-cn_topic_0000001163808920_p988723618577"></a><a name="zh-cn_topic_0000001163808920_p988723618577"></a>是</p>
</td>
<td class="cellrowborder" valign="top" width="70.17999999999999%" headers="mcps1.1.5.1.4 "><p id="zh-cn_topic_0000001163808920_p2512184017289"><a name="zh-cn_topic_0000001163808920_p2512184017289"></a><a name="zh-cn_topic_0000001163808920_p2512184017289"></a><span>亮度的值</span>(0~255)</p>
</td>
</tr>
</tbody>
</table>
- 示例:
```
import brightness from '@ohos.brightness.d.ts'
brightness.setValue(128);
```
# 数据管理<a name="ZH-CN_TOPIC_0000001163812204"></a>
- **[文件管理](js-apis-fileio.md)**
- **[单版本分布式数据库](js-apis-data-singlekvstore.md)**
- **[创建和获取分布式数据库](js-apis-data-kvmanager.md)**
- **[KVManager配置信息](js-apis-data-kvmanager-config.md)**
- **[分布式数据库操作描述](js-apis-data-kvstore.md)**
- **[数据类型描述](js-apis-data-type.md)**
- **[轻量级存储](js-apis-data-storage.md)**
# 设备管理<a name="ZH-CN_TOPIC_0000001163932186"></a>
- **[设备信息](js-apis-deviceinfo.md)**
- **[系统属性](js-apis-systemparameter.md)**
- **[系统恢复](js-apis-update.md)**
- **[显示设备属性](js-apis-display.md)**
- **[电池和充电属性](js-apis-batteryinfo.md)**
- **[设置系统屏幕亮度](js-apis-brightness.md)**
- **[系统电源管理](js-apis-power.md)**
- **[Runninglock锁](js-apis-runninglock.md)**
- **[传感器](js-apis-sensor.md)**
- **[振动](js-apis-vibrate.md)**
- **[国际化(I18n)](js-apis-i18n.md)**
- **[国际化(Intl)](js-apis-intl.md)**
- **[资源管理](js-apis-resourcemanage.md)**
- **[时间设置](js-apis-systemtime.md)**
- **[升级](js-apis-libupdateclient.md)**
- **[获取进程相关的信息](js-apis-process.md)**
- **[字符串编解码](js-apis-util.md)**
- **[启动一个worker](js-apis-worker.md)**
- **[URL字符串解析](js-apis-url.md)**
# 设备信息<a name="ZH-CN_TOPIC_0000001115814850"></a>
# 设备信息<a name="ZH-CN_TOPIC_0000001163932224"></a>
- [导入模块](#zh-cn_topic_0000001139910745_section370mcpsimp)
- [权限列表](#zh-cn_topic_0000001139910745_section373mcpsimp)
......@@ -7,7 +7,7 @@
## 导入模块<a name="zh-cn_topic_0000001139910745_section370mcpsimp"></a>
```
import deviceinfo from '@ohos.deviceinfo'
import deviceInfo from '@ohos.deviceInfo'
```
## 权限列表<a name="zh-cn_topic_0000001139910745_section373mcpsimp"></a>
......
此差异已折叠。
此差异已折叠。
# 媒体<a name="ZH-CN_TOPIC_0000001209412115"></a>
- **[音频管理](js-apis-audio.md)**
- **[音频播放](js-apis-media.md)**
# Radio<a name="ZH-CN_TOPIC_0000001145113322"></a>
# 网络搜索<a name="ZH-CN_TOPIC_0000001145113322"></a>
- [导入模块](#s56d19203690d4782bfc74069abb6bd71)
- [radio.getRadioTech](#section18401172810207)
......
# 系统属性<a name="ZH-CN_TOPIC_0000001162414651"></a>
# 系统属性<a name="ZH-CN_TOPIC_0000001210295633"></a>
- [导入模块](#zh-cn_topic_0000001094819718_section370mcpsimp)
- [权限列表](#zh-cn_topic_0000001094819718_section373mcpsimp)
......@@ -14,7 +14,7 @@
## 导入模块<a name="zh-cn_topic_0000001094819718_section370mcpsimp"></a>
```
import parameter from '@ohos.systemparameter'
import parameter from '@ohos.systemParameter'
```
## 权限列表<a name="zh-cn_topic_0000001094819718_section373mcpsimp"></a>
......
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册