当前位置:网站首页>鸿蒙第四次培训
鸿蒙第四次培训
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()
边栏推荐
- [machine learning notes] how to solve over fitting and under fitting
- Zibll theme external chain redirection go page beautification tutorial
- Laravel framework operation error: no application encryption key has been specified
- 这18个网站能让你的页面背景炫酷起来
- Primary code audit [no dolls (modification)] assessment
- 2022 construction welder (special type of construction work) special operation certificate examination question bank and online simulation examination
- The real king of caching, Google guava is just a brother
- ETCD数据库源码分析——集群间网络层客户端peerRt
- Hide Chinese name
- 内网穿透工具 netapp
猜你喜欢
These 18 websites can make your page background cool
Idea remote debugging agent
When using Tencent cloud for the first time, you can only use webshell connection instead of SSH connection.
Assembly language - Beginner's introduction
明峰医疗冲刺科创板:年营收3.5亿元 拟募资6.24亿
What about data leakage? " Watson k'7 moves to eliminate security threats
Ordering system based on wechat applet
Simple process of penetration test
这18个网站能让你的页面背景炫酷起来
【云资源】云资源安全管理用什么软件好?为什么?
随机推荐
Kotlin协程利用CoroutineContext实现网络请求失败后重试逻辑
Attack and defense world web WP
::ffff:192.168.31.101 是一个什么地址?
鏈錶(簡單)
LeetCode_69(x 的平方根 )
Laravel framework operation error: no application encryption key has been specified
Kotlin collaboration uses coroutinecontext to implement the retry logic after a network request fails
深拷贝真难
Zhubo Huangyu: it's really bad not to understand these gold frying skills
昆仑太科冲刺科创板:年营收1.3亿拟募资5亿 电科太极持股40%
几款分布式数据库的对比
leetcode 10. Regular expression matching regular expression matching (difficult)
Routing in laravel framework
Laravel generate entity
Could not set property 'ID' of 'class xx' with value 'XX' argument type mismatch solution
Source code analysis of etcd database -- peer RT of inter cluster network layer client
ELFK部署
基于微信小程序的订餐系统
Linked list (simple)
Jetpack compose introduction to mastery