当前位置:网站首页>鸿蒙第四次培训
鸿蒙第四次培训
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()
边栏推荐
- 基于微信小程序的订餐系统
- Kotlin协程利用CoroutineContext实现网络请求失败后重试逻辑
- Ueditor + PHP enables Alibaba cloud OSS upload
- Rk3566 add LED
- :: ffff:192.168.31.101 what address is it?
- 清大科越冲刺科创板:年营收2亿 拟募资7.5亿
- 2022 driller (drilling) examination question bank and simulation examination
- Introduction to Chapter 8 proof problem of njupt "Xin'an numeral base"
- When there are too many input boxes such as input transmitted at one time in the form, the post data is intercepted
- Network security - Novice introduction
猜你喜欢

Ordering system based on wechat applet

Convolutional Neural Networks简述

Those things I didn't know until I took the postgraduate entrance examination

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

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

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

ZABBIX monitoring

redis6事务和锁机制

Laravel dompdf exports PDF, and the problem of Chinese garbled code is solved

Embedded software architecture design - message interaction
随机推荐
2022年机修钳工(高级)考试题模拟考试题库模拟考试平台操作
Kafaka log collection
leetcode 10. Regular Expression Matching 正则表达式匹配 (困难)
Requset + BS4 crawling shell listings
【云资源】云资源安全管理用什么软件好?为什么?
Embedded software architecture design - message interaction
清大科越冲刺科创板:年营收2亿 拟募资7.5亿
瑞能实业IPO被终止:年营收4.47亿 曾拟募资3.76亿
Attack and defense world web WP
[public class preview]: basis and practice of video quality evaluation
Basic characteristics and isolation level of transactions
[server data recovery] a case of RAID5 data recovery stored in a brand of server
PHP character capture notes 2020-09-14
链表(简单)
ETCD数据库源码分析——集群间网络层客户端peerRt
Laravel - model (new model and use model)
牛客网:拦截导弹
aspx 简单的用户登录
Jetpack Compose入门到精通
Self built shooting range 2022