当前位置:网站首页>HarmonyOS第四次培训笔记
HarmonyOS第四次培训笔记
2022-07-17 05:03:00 【m0_61169431】
目录
1.命名
命名的时候要注意避免与关键字重复,否则会报错
2.弹窗
先导入模块
import prompt from '@system.prompt';3
prompt.showToast
showToast(Object): void
显示文本弹窗

prompt.showDialog
showDialog(): void
在页面内显示对话框
prompt.showActionMenu6+
showActionMenu(Object): void
显示操作菜单
3.web组件
首先要添加权限列表:ohos.permission.INTERNET
添加网络权限

安全配置
一个页面只支持一个web组件,会全屏显示,若页面中还有其他组件,会被web组件覆盖,web组件不跟随转场动画

3.cemara组件
添加权限列表: ohos.permission.CAMERA

边栏推荐
猜你喜欢

MySQL takes the union of two query conditions and then queries

sleuth入门

Sleuth getting started

Introduction to redis

3.RestClient查询文档

Cve-2020-10199 recurrence of nexus repository manager3 remote command execution vulnerability

Database learning notes (I) retrieval data

MYSQL两个查询条件取并集然后进行查询

TiDB 性能分析和优化

Tidb performance optimization overview
随机推荐
知识图谱de构建与应用(六):知识图谱的存储、服务与质量
渗透测试 10 --- 扫描 web目录 (dirb、wfuzz、wpscan、nikto)
shardingsphere的核心概念和快速实战
MYSQL数据库表A数据同步到表B
Hyperlink implementation post submission
Database and the future of open source
ThreadLocal线程安全示例及其原理
三种高并发方式实现i++
String string special interception processing according to symbols
异步数据-短信验证码
pygame-飞机大战1.0(步骤+窗口无响应问题)
MYSQL两个查询条件取并集然后进行查询
Load balancer ribbon practice
TopicExchange交换机简单使用。
Overview of CKS core knowledge points
Introduction to redis
事务的使用-django、 SQL工具
Notes on Advanced Mathematics: second derivative of composite function and curvature of solving parametric equation
Yiwen takes you to know about haproxy
天道酬勤,保持热爱