当前位置:网站首页>鸿蒙第四次培训
鸿蒙第四次培训
2022-07-05 13:52:00 【Makr小青】
1:轮播图:
<div class="cb-swiper-container">
<swiper>
<image for="{ {list.slice(0.5)}}" src="{ {item.image}}">
</image>
</swiper>
</div>
2: 数据传入(如将菜名传入list)
import list from "../ ../ ../common/datas/cookbook-hotcat.json"
export default {
data: {
list: []
},
onReady( {
this.list = list
}
}
3:list组件:参考华为官方文档
list-容器组件-组件-JS应用开发-智慧视觉设备-HarmonyOS设备开发
4:跳转页面(涉及生命周期):
页面A的生命周期接口的调用顺序:打开页面A:onInit() -> onReady() -> onShow()
在页面A打开页面B:onHide() -> onDestroy()
从页面B返回页面A:onInit() -> onReady() -> onShow()
退出页面A:onHide() -> onDestroy()
页面隐藏到后台运行:onHide()
页面从后台运行恢复到前台:onShow()
边栏推荐
- Usage, installation and use of TortoiseSVN
- MySQL get time
- [South China University of technology] information sharing of postgraduate entrance examination and re examination
- 2022司钻(钻井)考试题库及模拟考试
- Solve the problem of invalid uni app configuration page and tabbar
- 2022 construction welder (special type of construction work) special operation certificate examination question bank and online simulation examination
- redis6主从复制及集群
- Rk3566 add LED
- Network security HSRP protocol
- PHP generate Poster
猜你喜欢

荐号 | 有趣的人都在看什么?

jasypt配置文件加密|快速入门|实战

Brief introduction to revolutionary neural networks

Data Lake (VII): Iceberg concept and review what is a data Lake

搭建一个仪式感点满的网站,并内网穿透发布到公网 2/2

Why do I support bat to dismantle "AI research institute"

瑞能实业IPO被终止:年营收4.47亿 曾拟募资3.76亿

Solve the problem of invalid uni app configuration page and tabbar

【公开课预告】:视频质量评价基础与实践

Can graduate students not learn English? As long as the score of postgraduate entrance examination English or CET-6 is high!
随机推荐
Recommendation number | what are interesting people looking at?
这18个网站能让你的页面背景炫酷起来
kafaka 日志收集
Simple process of penetration test
Multi person cooperation project to see how many lines of code each person has written
Aikesheng sqle audit tool successfully completed the evaluation of "SQL quality management platform grading ability" of the Academy of communications and communications
jasypt配置文件加密|快速入门|实战
Redis6 master-slave replication and clustering
Those things I didn't know until I took the postgraduate entrance examination
2022 construction welder (special type of construction work) special operation certificate examination question bank and online simulation examination
Request + BS4 crawl Netease cloud music popular comments
JS takes key and value from an array object to form a new object
Source code analysis of etcd database -- peer RT of inter cluster network layer client
Zhubo Huangyu: these spot gold investment skills are not really bad
-Web direction attack and defense world
Matlab learning 2022.7.4
Idea set method annotation and class annotation
Rk3566 add LED
Blue Bridge Cup study 2022.7.5 (morning)
Kotlin协程利用CoroutineContext实现网络请求失败后重试逻辑