当前位置:网站首页>鸿蒙第四次培训
鸿蒙第四次培训
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()
边栏推荐
- LeetCode_67(二进制求和)
- Controller in laravel framework
- Programmer growth Chapter 8: do a good job of testing
- Laravel framework operation error: no application encryption key has been specified
- Usage, installation and use of TortoiseSVN
- Apicloud studio3 WiFi real machine synchronization and WiFi real machine preview instructions
- The development of speech recognition app with uni app is simple and fast.
- ELK 企业级日志分析系统
- 清大科越冲刺科创板:年营收2亿 拟募资7.5亿
- 如何把大的‘tar‘存档文件分割成特定大小的多个文件
猜你喜欢

Detailed explanation of IP address and preparation of DOS basic commands and batch processing

How to apply the updated fluent 3.0 to applet development

Self built shooting range 2022

ZABBIX monitoring

Godson 2nd generation burn PMON and reload system

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

金融壹账通香港上市:市值63亿港元 叶望春称守正笃实,久久为功

Xampp configuring multiple items

Set up a website with a sense of ceremony, and post it to the public 2/2 through the intranet
![[js] basic syntax - for loop](/img/7f/6ddc47c062caa7d39538f88e12b1a0.jpg)
[js] basic syntax - for loop
随机推荐
What happened to the communication industry in the first half of this year?
web3.eth. Filter related
Jetpack compose introduction to mastery
牛客网:拦截导弹
How to divide a large 'tar' archive file into multiple files of a specific size
链表(简单)
What about data leakage? " Watson k'7 moves to eliminate security threats
About the problem and solution of 403 error in wampserver
Programmer growth Chapter 8: do a good job of testing
Matlab learning 2022.7.4
【华南理工大学】考研初试复试资料分享
Laravel框架运行报错:No application encryption key has been specified
Elk enterprise log analysis system
Source code analysis of etcd database -- peer RT of inter cluster network layer client
Catch all asynchronous artifact completable future
2022 construction welder (special type of construction work) special operation certificate examination question bank and online simulation examination
Etcd database source code analysis -- rawnode simple package
ZABBIX monitoring
asp. Net read TXT file
几款分布式数据库的对比